[TYPO3-english] Felogin xclass not working in Typo3 6.2beta5

Xavier Perseguers xavier at typo3.org
Mon Mar 17 09:34:40 CET 2014


Just a blind guess,

In your very first post you wrote:

> -> in my extensions ext_localconf.php;
>
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects']['TYPO3\\CMS\\Felogin\\Controller\\FrontendLoginController']
= array(
>  'className' => 'MyExtension\\Xclass\\Override\\FrontendLoginController',
> );

But at 9:05 you wrote:

> And actual path of the file is
"MyExtension/Classes/Xclass/FrontendLoginController.php" ?

So either you wrote something wrong or you did not see that you have an
"Override" segment in your 'className' definition, which should of
course be reflected in your physical path.

Kind regards

PIT Solutions wrote:
> Dear Xavier,
> 
> Thanks. But still I am in trouble...:(
> 
> I don't know what is the reason.
> 
> With Regards,
> Arun
> 
> ________________________________
>  From: Xavier Perseguers <xavier at typo3.org>
> To: typo3-english at lists.typo3.org 
> Sent: Monday, March 17, 2014 1:47 PM
> Subject: Re: [TYPO3-english] Felogin xclass not working in Typo3 6.2beta5
>  
> 
> Hi Arun,
> 
>> Thanks. But its not working for me. I've some clarifications;
>>
>> $GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects']['TYPO3\\CMS\\Felogin\\Controller\\FrontendLoginController']
>> = array(
>>      'className' => 'Causal\\MyExtension\\Xclass\\FrontendLoginController',
>> );
>>
>>
>> What you mean by "'Causal" ? And actual path of the file is  "MyExtension/Classes/Xclass/FrontendLoginController.php" ? Please clarify.
> 
> That's my company name, when using namespaces in TYPO3 6.x you need a
> first segment as your name:
> 
> namespace YourName\YourExtensionKey\Whatever;
> 
> class Something {
> 
> }
> 
> Stored as EXT:yourExtensionKey/Classes/Whatever/Something.php
> 
>> And also I've added the code;
>>
>> $GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects']['tx_felogin_pi1'] =
>> $GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects']['TYPO3\\CMS\\Felogin\\Controller\\FrontendLoginController'];
>>
>>
>> But its not working. I've cleared all the cache but not working;
> 
> Then no idea, sorry (but as you seem to have missed the "Name/Company"
> Segment, this may be the cause).
> 
> Xavier
> 

-- 
Xavier Perseguers
TYPO3 CMS Team Member

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



More information about the TYPO3-english mailing list