[TYPO3-english] $GLOBALS["TSFE"]->feuser
Francois Suter
fsuter at cobweb.ch
Fri Jun 19 16:31:19 CEST 2009
alex widschwendter wrote:
> hi,
>
>> In a rightclickmenu I need to get user information, but the values in
>> $GLOBALS["TSFE"]->feuser are empty, and therefor not init. The menu is
>> a ajax menu, and so the php page who generate the men is a "stand
>> alone" file. With a init.php (stole and rewrited "/typo3/init.php") I
>> have set up the difference variables, but not the
>> $GLOBALS["TSFE"]->feuser.
>>
>> Does anyone know where in the core $GLOBALS["TSFE"]->feuser is set, or
>> better which T3 class do I have to include on me standalone page???
>
> afaik you could use an eid script for that.
That would definitely make more sense.
And if you're in the BE, there's already a framework for AJAX calls [1]
and the user is a BE user and not a FE user and is available in
$GLOBALS['BE_USER'].
HTH
--
Francois Suter
Cobweb Development Sarl - http://www.cobweb.ch
[1]
http://typo3.org/documentation/document-library/core-documentation/doc_core_api/4.2.0/view/3/9/
More information about the TYPO3-english
mailing list