[TYPO3-english] felogin hook beforeRedirect doesn't work

Jan Wehe typo3 at wehe-online.de
Wed May 16 15:04:23 CEST 2012


Hello,
I'm using TYPO3 4.6.7 with felogin 1.4.0 and try to use the beforeRedirect
hook.

I created a class file named class.felogin-hook.php in my extension
directory.
It only contains sample code:

class.felogin-hook.php
======================
class user_nwsso_login
{
	function login(&$params, &$pObj) {
		var_dump($params);
		var_dump($pObj);
	}
}

ext_localconf.php
======================
if (!defined('TYPO3_MODE')) {
	die ('Access denied.');
}
t3lib_extMgm::addPItoST43($_EXTKEY, 'pi1/class.tx_nwsso_pi1.php', '_pi1',
'list_type', 1);
require_once(t3lib_extMgm::extPath($_EXTKEY) . 'class.felogin-hook.php');
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['felogin']['beforeRedirect'][] =
'user_nwsso_login->login';
/*
also tried:
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['felogin']['beforeRedirect'][] =
'EXT:nw_sso/class.felogin-hook.php:user_nwsso_login->login';
*/

I don't get any var_dump() output in frontend, my extension is installed
and enabled, cache is cleared.
Maybe anyone can help me?


More information about the TYPO3-english mailing list