Parisi
Member
I have a field element that I want to display the currently logged in Joomla user's name.
I have the following in the Default
$user = JFactory::getUser();
$name = $user->get('name');
return $name;
But it fails - I cannot even save the element. I get
Error 403 - Forbidden
You don't have permission to access the requested resource. Please contact the web site owner for further assistance.
I know this is something silly.
Please help.
I have the following in the Default
$user = JFactory::getUser();
$name = $user->get('name');
return $name;
But it fails - I cannot even save the element. I get
Error 403 - Forbidden
You don't have permission to access the requested resource. Please contact the web site owner for further assistance.
I know this is something silly.
Please help.