| API | Package | Subpackage | Class | Method | Reference | Last reviewed | Doc status |
|---|---|---|---|---|---|---|---|
Home |
Joomla.Framework |
Application |
JApplication |
isSite |
isSite() |
Never | Work in Progress |
Returns a boolean value specifying whether or not the current page is being loaded from the site interface.
boolean isSite ()
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!