====== getClientId ====== {#JAPI Joomla.Framework Application JApplication::getClientId #} 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. ===== Syntax ===== int getClientId () ===== Examples ===== global $mainframe; echo $mainframe->getClientId(); might produce 0 if called from the site frontend. ---- ~~DISCUSSION~~