[TYPO3-mvc] initializeAction how to instance repository from other extension?

Peter Niederlag typo3-list at niekom.de
Fri Mar 26 09:42:35 CET 2010


Hello,

ralph schrieb:
[...]
>  public function initializeAction() {
>     other instances from own plugin
>     $this->someRepository =             
> t3lib_div::makeInstance('Tx_My_Domain_Model_SomeRepository');
> }
> any hints how to make the foreign repository accessible?

$this->whatEverRepository =
t3lib_div::makeInstance('Tx_Extkey_Domain_Model_WhateverRepository');

just works if 'Extkey' is loadad and has 'WhateverRepository' in the
appropriate folder.

Really BIG Thx to usage of _spl_autoload_register here. :->

[...]

Greets,
Peter
-- 
Peter Niederlag
http://www.niekom.de * TYPO3 & EDV Dienstleistungen *


More information about the TYPO3-project-typo3v4mvc mailing list