Posts Tagged ‘oop’

|

Organizing PHP Includes with Autoload

Thursday, February 18th, 2010

Since PHP5 was released, PHP programmers have been blessed with a decent support of object-oriented programming. With this ability many programmers have used classes in many if not all of their projects. A very common practice for OO programmers is to place each class in an includes folder. There have been many times when I have seen a config file full of includes and/or requires. They will include every class in their includes folder whether or not they use it in a particular script. This causes many unnecessary includes.

(more…)

Tags: , , , ,
Posted in Programming, Tutorial | No Comments »