Re: Best way of calling multiple classes?
- From: Jerry Stuckle <jstucklex@xxxxxxxxxxxxx>
- Date: Tue, 28 Aug 2007 22:15:20 -0400
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@xxxxxxxxxxxxx
==================
.
- Follow-Ups:
- Re: Best way of calling multiple classes?
- From: Michael Fesser
- Re: Best way of calling multiple classes?
- References:
- Best way of calling multiple classes?
- From: Phil Latio
- Re: Best way of calling multiple classes?
- From: Jerry Stuckle
- Re: Best way of calling multiple classes?
- From: Michael Fesser
- Best way of calling multiple classes?
- Prev by Date: Re: email attachment
- Next by Date: Re: include failing to include...
- Previous by thread: Re: Best way of calling multiple classes?
- Next by thread: Re: Best way of calling multiple classes?
- Index(es):
Relevant Pages
|