| API | Package | Subpackage | Class | Method | Reference | Last reviewed | Doc status |
|---|---|---|---|---|---|---|---|
Home |
Joomla.Framework |
Application |
JApplication |
getTemplate |
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.
string getTemplate ()
Example
global $mainframe; echo $mainframe->getTemplate();
might produce
Result
rhuk_milkyway