references:joomla.framework:application:japplication-gettemplateTable of Contents
getTemplate
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. Syntaxstring getTemplate () ExamplesExample global $mainframe; echo $mainframe->getTemplate(); might produce Result rhuk_milkyway |


