Table of Contents

getTemplate

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Application Class JApplication Method getTemplate Reference getTemplate() Never Work in Progress

Gets the name of the current template. The value returned by the JApplication class itself is ‘_system’. The $mainframe object is actually an instance of the JSite class, which extends JApplication and overrides this method to return a string containing the name of the current template.

Syntax

string getTemplate ()

Examples

Example

global $mainframe;

echo $mainframe->getTemplate();

might produce

Result

rhuk_milkyway