[TYPO3-ect] Zend style extensions scheme

Elmar Hinz elmar.DOT.hinz at team.MINUS.red.DOT.net
Tue Mar 21 21:59:57 CET 2006


Peter Niederlag schrieb:
> Are you refering to the pear-package-scheme solely or also the
> class-naming-scheme?
> 


> That would be really awesome in my eyes and ist one of my most time
> favorites for TYPO3. That would also enable pretty easy handling of
> auto-class-loading like a bunch of other Frameworks use.
> 
> Greets,
> Peter


What is the exact difference? Class names and package pathes look like
the same for me. That's what the auto-class-loading is based on.

But even without setting auto-class-loading on, the Classnames tell
you the path automatically, if the base is in the PHP include path.

I have never understood why TYPO3 has this complicated system of file
inclusions.

I needt to do:

require_once(
  t3lib_extMgm::extPath('extkey')
  . 'relpath/class.tx_extkey_something.php'
);

$obj = t3lib_div::makeInstance(tx_extkey_something);

I need to set the extkey *3* times to geht the class.


Why not simply:

$obj = t3lib_div::makeInstance('tx_extkey_something', relpath);

All necessary information is in this. TYPO3 autoloading.


So please try in a few days:

$obj = tx_div::makeInstance('tx_extkey_something', relpath);


Regards

Elmar





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