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

Christian Welzel gawain at camlann.de
Tue Aug 14 13:17:48 CEST 2007


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