[TYPO3-english] Current user id

bernd wilke t3ng at pi-phi.tk
Mon Sep 20 16:43:16 CEST 2010


Am Mon, 20 Sep 2010 16:25:15 +0200 schrieb Max van Essen:

> Hi all,
> 
> I've got the following question: how do I get the ID of the currect
> logged-in user to use in php code, using felogin?

you can access all fields of the current user in the record
$GLOBALS['TSFE']->fe_user->user

the ID (uid?) whould be:
$GLOBALS['TSFE']->fe_user->user['uid']

bernd
-- 
http://www.pi-phi.de/cheatsheet.html


More information about the TYPO3-english mailing list