J3.x

Découvrez sur quel client le code de votre extension s'exécute

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 40% complete.
Other languages:
English • ‎Nederlands • ‎español • ‎français
Joomla! 
≥ 3.7
version

This article gives an overview of the JFactory::getApplication()->isClient() method introduced in Joomla! 3.7.
It replaces the JFactory::getApplication()->isSite() and JFactory::getApplication()->isAdmin() methods.

Frontend

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

Administration / Backend

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

Administration / Backend

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