J3.x

Discover on which client your extension code is running/es

From Joomla! Documentation

This page is a translated version of the page J3.x:Discover on which client your extension code is running and the translation is 60% complete.

Other languages:
English • ‎español • ‎français • ‎Nederlands
Joomla! 
≥ 3.7
version

Este artículo da una idea general del nuevo método de Joomla! 3.7 JFactory::getApplication()->isClient()
Este método reemplaza a JFactory::getApplication()->isSite() y JFactory::getApplication()->isAdmin().

Frontend

JFactory::getApplication()->isClient('site')
Returns true if executed in the Joomla! website frontend.

Administrador / Backend

JFactory::getApplication()->isClient('administrator')
Returns true if executed in the Joomla! website backend / administrator area.

Administrador / Backend

JFactory::getApplication()->isClient('installation')
Returns true if executed in the Joomla! installation.