user_id?

12 years 1 month ago #190181 by jm1968a
user_id? was created by jm1968a
I need to pull the current logged in user's ID so that I can use it in a query. My objective is to list items based on the user_id of the current user.

Is there an API call or something like that?

$user_id = $this->user_id;

Please Log in to join the conversation.

12 years 1 month ago #190192 by jm1968a
Replied by jm1968a on topic Re: user_id?
found it!!!

$user =& JFactory::getUser();



<p><?php echo $user->id ?></p>

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.167 seconds

Facebook Twitter LinkedIn