By
using this
function JFactory::getUser() it provides all detail of loggedin user/
$user =
JFactory::getUser();
(u can check
by print_r($user))
TO GET VALUES
OF USER Like we want ‘id’ of logged in user
$user->get('id'); (//by using that way we can get all details
of user)
EmoticonEmoticon