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

Kay Strobach typo3 at kay-strobach.de
Wed Jun 12 12:57:02 CEST 2013


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