[TYPO3-english] Login from eid

Xavier Perseguers typo3 at perseguers.ch
Wed Dec 9 11:23:45 CET 2009


Hi,

> On 09/12/2009 09:19, Rafael Freuler wrote:
>>             // DOES NOT WORK
>>             //$GLOBALS['TSFE']->fe_user->start();
>>             //$GLOBALS['TSFE']->initFEuser();
> 
> Here is what I use since 4.2.0. It works also in 4.3:
> 
>         $tsfeClassName = t3lib_div::makeInstanceClassName('tslib_fe');
>         $GLOBALS['TSFE'] = new 
> $tsfeClassName($GLOBALS['TYPO3_CONF_VARS'], 
> intval(t3lib_div::_GP('id')), '');

This works but is deprecated, this should be changed to

$GLOBALS['TSFE'] = t3lib_div::makeInstance('tslib_fe', 
intval(t3lib_div::_GP('id')), '');

Cheers

-- 
Xavier Perseguers
DBAL Leader

http://forge.typo3.org/projects/show/extension-dbal


More information about the TYPO3-english mailing list