madseason
4/26/2018 - 7:22 PM

Joomla verificare utente loggato

$user = JFactory::getUser();        // Get the user object
$app  = JFactory::getApplication(); // Get the application

if ($user->id != 0)
{
    // you are logged in
}
else 
{
    // Redirect the user
    $app->redirect(JRoute::_('index.php?option=com_users&view=login'));
}