Support Joomla!

references:joomla.framework:application:japplication-isadmin

Table of Contents

isAdmin

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Application Class JApplication Method isAdmin Reference isAdmin() Never Work in Progress

Returns a boolean value specifying whether or not the current page is being loaded from the administrator interface.

Syntax

boolean isAdmin ()

Examples

Example

global $mainframe;

if ($mainframe->isAdmin()) {
    echo "We are in the administrator interface!";
} else {
    echo "We are not in the administrator interface!";
}

might produce

Result

We are not in the administrator interface!

 
references/joomla.framework/application/japplication-isadmin.txt (734 views) · Last modified: 2007/08/15 14:49