J3.x

Discover on which client your extension code is running/es

From Joomla! Documentation

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Other languages:
English • ‎Nederlands • ‎español • ‎français
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.