Created
October 12, 2012 18:20
-
-
Save biswarupadhikari/3880666 to your computer and use it in GitHub Desktop.
Joomla:Check Logged user in Frontend or In Backend
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$app =& JFactory::getApplication(); | |
if ($app->isAdmin()) { | |
echo "we are in the administrator"; | |
} else { | |
echo "we are in the frontend site"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment