Support Joomla!

references:joomla.framework:application:japplication-getclientid

Table of Contents

getClientId

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Application Class JApplication Method getClientId Reference 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.

Syntax

int getClientId ()

Examples

Example

global $mainframe;

echo $mainframe->getClientId();

might produce

Result

0

if called from the site frontend.


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