[TYPO3-mvc] How to extend Felogin with Xclass

Xavier Perseguers xavier at typo3.org
Wed Sep 18 07:07:19 CEST 2013


hi Stefan,

> @Xavier: Could you give maybe an example of how do you extend felogin with
> xclass. If possible for Typo3 6 and higher. This would be very nice.

Of course. And I can understand you did not succeed because there's a
trick I had to find out by digging into the code to understand why it
did not work. Here's the explanation I put into my ext_localconf.php:


// Register XCLASS to allow a user that never logged-in to retrieve her
password
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects']['TYPO3\\CMS\\Felogin\\Controller\\FrontendLoginController']
= array(
	'className' => 'Causal\\MyExt\\Xclass\\FrontendLoginController',
);
// As of 26.08.2013, tx_felogin_pi1 is still registered with
EXT:fe_login/ext_localconf.php:
// meaning XCLASS does not (yet) work as expected
/*
plugin.tx_felogin_pi1 = USER_INT
plugin.tx_felogin_pi1 {
	includeLibs = EXT:felogin/pi1/class.tx_felogin_pi1.php
	userFunc = tx_felogin_pi1->main
}
*/
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects']['tx_felogin_pi1'] =
$GLOBALS['TYPO3_CONF_VARS']['SYS']['Objects']['TYPO3\\CMS\\Felogin\\Controller\\FrontendLoginController'];



-- 
Xavier Perseguers
Release Manager TYPO3 4.6

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



More information about the TYPO3-project-typo3v4mvc mailing list