*grin*

I can't take all the credit.

Matthew wrote the autoload() function and helpfully provided usage
examples in the docblock comment. I just happened to notice the svn
update email for it :)

Regards,

Rob...


Nick Lo wrote:
> Ok Rob you win this time but mark my words, I'll be back, I'll be back!
> 
> ...but erm, I'll take that bit of code with me.
> 
> Nick
> 
>> Yes.
>>
>> However,
>>
>>   spl_autoload_register(array('Zend_Loader', 'autoload'));
>>
>> is "cleaner" to my eyes at least :)
>>
>> Regards,
>>
>> Rob...
>>
>>
>> Nick Lo wrote:
>>> Or keep going and just autoload the lot:
>>>
>>> include 'Zend/Loader.php';
>>> function __autoload( $class )
>>> {
>>>     Zend_Loader::loadClass( $class );
>>> }
>>>
>>> Nick
> 

Reply via email to