Posted by Jerry Stuckle on 08/29/07 02:15
Michael Fesser wrote:
> .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
Not bad. But it also adds complexity and overhead.
Don't get me wrong - I like __autoload. But I also like to keep things
simple. Make for much easier troubleshooting in six months.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|