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

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


Hi Christian.

as far as i understand is, that the classes have to register themself in the 
"Motherclass" - tx_lib
Now tx_lib can iterate and find all classes that are needed.

vg  Steffen

"Christian Welzel" <gawain at camlann.de> schrieb im Newsbeitrag 
news:mailman.1.1187090266.8863.typo3-team-extension-coordination at lists.netfielders.de...
> Joerg Schoppet wrote:
>
>> So for people like myself, who 100% program PHP5 no additional TS like
>> "includeLibs" or php-code like "tx_div::load..."  would be necessary.
>
> But how do you handle class overrides then?
>
> If the normal TS-Config is used:
>> inlcudeLibs.tx_myext_list = EXT::myext/class.tx_myext_list_controller.php
>> inlcudeLibs.tx_myext_edit = EXT::myext/class.tx_myext_edit_controller.php
>> inlcudeLibs.tx_myext_remove = 
>> EXT::myext/class.tx_myext_remove_controller.php
>
> And i want to use my own implementation of the edit controller i can 
> simply
> copy the original class file, edit the code and then load it with
>> inlcudeLibs.tx_myext_edit = 
>> EXT::overrideext/class.tx_myext_edit_controller.php
> and the whole stuff works out of the box without any modifying of the 
> "myext" ext.
> And it is upgrade safe as long as this single file is not affected.
>
> How could that work, if the autoload mechanism is used?
>
> -- 
> MfG, Christian Welzel
>
>  GPG-Key:     http://www.camlann.de/key.asc
>  Fingerprint: 4F50 19BF 3346 36A6 CFA9 DBDC C268 6D24 70A1 AD15 




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