[TYPO3-dev] dreaded newbie question

LucitherCom lucither at lucither.com
Fri Mar 30 15:40:51 CEST 2007


Guten Tag Stefan Kreisberg,

am Freitag, 30. März 2007 um 15:12 schrieben Sie:

> LucitherCom wrote:

>> hello there,
>> 
>> maybe i'm to dumb or i can't read english anymore.
>> 
>> i want to use the identity, more precisely his UID,or a function that
>> will give me that, of the loggedin FEuser for a query in my
>> extension:
>> 
>> 
>> $res=$GLOBALS["TYPO3_DB"]->exec_SELECTquery("*","my_table","deleted =
>> 0 AND hidden = 0 AND pid='".$toPageId."'AND userid=".$userid."");
>> $row=$GLOBALS["TYPO3_DB"]->sql_fetch_assoc($res);
>> 
>> i just don't know where to get that said userid.could anyone point me
>> in the right direction, please? 

> Could it be

$GLOBALS['TSFE']->>fe_user->user['uid']

> You are looking for?

> :-)

>> i haven't found anything concerning FE 
>> users in the Core API doc or inside typo3 that is addressing my
>> problem :(
>> 
>> thanks :)
>> 
>> 
>> 

 THAT was the one i'm looking for, thanks!! sorry for posting that
 newbie question in this list:)


-- 
Mit freundlichen Grüßen
LucitherCom
mailto:lucither at lucither.com

"the  next question will be better"






More information about the TYPO3-dev mailing list