$user = JFactory::getUser();
$UserID=$user->get('id');
echo $UserID;
get id available in variable
and print out the value -> e.g. '410'
output: 0
OS Linux i
PHP 5.5.16
MySQL 5.1.73
Joomla! 3.3.6 Stable
FireFox recent version
up to the update 3.3.6 everything works fine.
Status | New | ⇒ | Information Required |
I'm not able to replicate this.
Everything is working fine for me on 3.3.6 (both admin and site sides)
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4426.
Status | Information Required | ⇒ | Closed - Unconfirmed Report |
Set to "closed" on behalf of @vdespa by The JTracker Application at issues.joomla.org/joomla-cms/4426
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2014-10-02 15:10:53 |
Labels |
Added:
?
|
I am not able to replicate this. For a guest 0 is ok.
If you var_dump the whole $user object, is the id property displayed?