[TYPO3-english] XCLASS with Extbase Extensions?

Alexander Dick typo3 at dick.at
Thu Dec 15 20:13:28 CET 2011


Aaaah - cool thanks! :-)

And how does the new class have to be defined?

class Tx_MyExt_Controller_OtherController {

or

class Tx_MyExt_Controller_OtherController extends 
Tx_FooExt_Controller_OriginalController {

}

thanks
Alex

Am 15.12.2011 20:10, schrieb Lars Patrick Heß:
> You have to use the DependencyInjection system, you can do something like this in your typoscript configuration to override controllers etc.:
>
> config.tx_extbase {
> 	objects {
> 		Tx_FooExt_Controller_OriginalController.className = Tx_MyExt_Controller_OtherController
> 	}
> }
>
> :-)
>
> Am 15.12.2011 um 20:03 schrieb Alexander Dick:
>
>> Hi List,
>>
>> is there any way how one can extend/override an Extbase Class, like the traditional XCLASS functionality? Didn't find anything yet.
>>
>> best regards
>> Alex
>> _______________________________________________
>> TYPO3-english mailing list
>> TYPO3-english at lists.typo3.org
>> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>


More information about the TYPO3-english mailing list