Posted by Michael Fesser on 08/29/07 01:21
..oO(Jerry Stuckle)
>__autoload is good - but it requires extra processing over and above a
>require_once, and pretty much everything has to reside in the same
>directory.
My __autoload() invokes a special class loader method, which allows to
store all my classes and interfaces in subdirectories. The class loader
is able to recursively search through the tree structure if necessary.
The exact location of each found class is cached in an index file, so
the overhead for loading a class is quite small.
Micha
[Back to original message]
|