| API | Package | Subpackage | Class | Method | Reference | Last reviewed | Doc status |
|---|---|---|---|---|---|---|---|
Home |
Joomla.Framework |
Application |
JApplication |
getClientId |
getClientId() |
Never | Work in Progress |
Gets the client id of the current running application. This can be either 0, for the site or frontend application, 1 for the administrator or backend application, or 2 for installation.
int getClientId ()
Example
global $mainframe; echo $mainframe->getClientId();
might produce
Result
0
if called from the site frontend.