Table of Contents

isSite

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

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

Syntax

boolean isSite ()

Examples

Example

global $mainframe;

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

might produce

Result

We are in the site interface!