XtrmAddons.Com > Extensions MVC - Web Development

Differents sections of the site

PHP Release

MySQL News

Xtrm-Addons.Com > How to use Joomla!

Application: Find the template name

Find the name of the template in Joomla!

Joomla! 2.5 Joomla! 1.7 Joomla! 1.6

To find the name of the template used by your Joomla! site, use the function getTemplate($params=false) of the JApplication Class.

Params:
$params
An optional associative array of configuration settings.
Return:
The template name. System is the fallback.
 
// Return : The template name. System is the fallback.
JFactory::getApplication()->getTemplate($params=false);
 
Example 1:
$app =& JFactory::getApplication();
$template = $app->getTemplate();
 
Example 2:
$template = JFactory::getApplication()->getTemplate($myParams);
 
Joomla! 1.5

To find the name of the template used by your Joomla! site, use the function getTemplate() of the JApplication Class.

Params:

Return:
The template name. System is the fallback.
 
// Return : The template name. System is the fallback.
JFactory::getApplication()->getTemplate();
 
Example 1:
$app =& JFactory::getApplication();
$template = $app->getTemplate();
 
Example 2:
$template = JFactory::getApplication()->getTemplate();
 

XtrmAddons.Com > News & Feeds

All web news

Joomla! Announcements

  •   The May issue of the Joomla Community Magazine is here! Our stories this month: EDITOR'S INTRODUCTION Joomla! Around the World…, by Dianne Henning FEATURE STORIES 5 Steps Towards Successful Time Management, by Gabe Wahhab Joomla Events Website Launch, by Mike Carson Pros and Cons of Partnering with a Web Design Agency, by Luke Summerfield PROJECT NEWS Leadership Highlights for April...

  • J and Beyond, an International Joomla! Conference, is back for the third year. For 3 days in May (18th -20th) Joomla! developers and site builders from over 30 countries will gather in Bad Nauheim, near Frankfurt, right in the heart of Europe. The programme for J and Beyond is created by the...

  • Joomla today announces that its core files have been downloaded more than 30 million times from Joomla.org. Joomla now averages around 1 million downloads every month. The Joomla community attributes the continued growth in the number of individuals, companies and organizations using the CMS to an aggressive development road map that...

  •   The April issue of the Joomla Community Magazine is here!   Our stories this month: Editor's Introduction The Reel Deal, by Alice Grevet Feature Stories Worksy Makes Joomla User-Friendly for Non-Techies, by Ronni K. G. Christiansen When in Rome, do as the Romans do, in Japan!, by Norito H.Yoshida 10 Joomla! Prejudices, by Angie Radtke Best...

XtrmAddons.Com > Statistiques and Informations

Site informations

Domain name

We trust 1&1 for our domains - Reserve yours now for only 6.99€ HT (8.36€) per year!

Statistics

Visitors
16
Articles
32
Web Links
9
Articles View Hits
4709

Who's online ?

We have 3 guests and no members online