[TYPO3-english] XCLASS with Extbase Extensions?

Lars Patrick Heß larshess at gmail.com
Thu Dec 15 20:21:40 CET 2011


Both of them is possible, but if you want change a functionality you have to extend from the original one :-)

Am 15.12.2011 um 20:13 schrieb Alexander Dick:

> 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
>> 
> _______________________________________________
> 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