[TYPO3-english] How to implement xclass in extbase extensions ?

Kay Strobach typo3 at kay-strobach.de
Thu Jun 13 08:37:35 CEST 2013


Hi Arun,

if you just want to use a model extended in your own workcase, just
extend it and use your own repository.

This can be achieved by simply mapping properties to the you need.

Xclassing is described here:

http://wiki.typo3.org/Xclass

http://www.typovision.de/fileadmin/slides/ExtbaseFluidCheatSheetTypovision.pdf


Regards
Kay

Am 12.06.13 13:31, schrieb PIT Solutions:
> Hi Kay,
> 
> I want to implement some additional features by using xclass. Generally I need to know how to implement this.
> If possible, could you please explain me how to add this with the given example ?
> 
> With Regards,
> Arun
> 
> 
> 
> Hi Arun,
> 
> what do you want to achieve with the xclass?
> normally it should be possible to avoid xclassing in extbase :D
> 
> Regards
> Kay
> 
> Am 12.06.13 12:28, schrieb PIT Solutions:
>> Hi All,
>>
>> I want to implement xclass with an extbase extension (felogin (typo3 6.0)). I am using typo3 version 6.1.0.
>> For this I've created a new extension (extn key : new_felogin) by using extension builder.
>>
>> The felogin extension contains a class file which has a namespace.
>>
>> namespace TYPO3\CMS\Felogin\Controller;
>> class FrontendLoginController extends \TYPO3\CMS\Frontend\Plugin\AbstractPlugin {
>> }
>>
>> My extension also have a class file which contains a namespace.
>>
>> namespace TYPO3\NewFelogin\Controller;
>> class NewfeloginController extends \TYPO3\CMS\Frontend\Plugin\AbstractPlugin {
>> }
>>
>> So how can I implement the xclass in my extension without using typoscript. I got some references which mentioned about this.
>> According to that, I've added the following code in my extension's "ext_localconf.php" file.
>>
>> $GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects']['TYPO3\CMS\Frontend\Plugin\AbstractPlugin'] = array(
>>      'className' => 'TYPO3\NewFelogin\Controller\NewfeloginController',
>> );
>>
>> But its not working.
>>
>> So if you anybody know about this, please help me. I want to know about how to implement xclass in extbase extensions.
>>
>> Thanks in advance,
>>    Arun Chandran
>>
> 
> 


-- 
http://www.kay-strobach.de - Open Source Rocks

TYPO3 .... inspiring people to share!
Get involved: http://typo3.org

Answer was useful - feel free to donate:
  -
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=KPM9NAV73VDF2
  - https://flattr.com/profile/kaystrobach



More information about the TYPO3-english mailing list