[TYPO3-ect] Autoload-function for lib/div?

Steffen Kamper steffen at sk-typo3.de
Tue Aug 14 13:16:03 CEST 2007


"Elmar Hinz" <elmar07 at googlemail.com> schrieb im Newsbeitrag 
news:mailman.1.1187089669.11046.typo3-team-extension-coordination at lists.netfielders.de...
>> Normally no.
>>
>> see http://us2.php.net/spl_autoload_register
>>
>> spl_autoload_register initialises a stack, in which you can put as much
>> autoload functions as you like.
>>
>> The only thing is, that if you have an existing __autoload-function,
>> this have to been registered in spl_autoload_register.
>>
>>
>> Joerg
>
>
> Well that all sounds satisfying. We should test it.
>
> So you don't need any calls to tx_div::load() during development. If you
> need to make a PHP5 extension PHP4 compatible for a customer, you just add
> a few of this calls. But you don't do this any more all the time during
> development. That's fine.
>
> Regards
>
> Elmar
>
yes, +1 for this method - also it makes development much easier if you don't 
have to take care about searching for includes etc.

vg  Steffen




More information about the TYPO3-team-extension-coordination mailing list