Filed Under (Uncategorized) by khawaib on 27-04-2010
Using following code we can get joomla’s language and use it in our extensions code.
$lg = &JFactory::getLanguage();
$language = $lg->getBackwardLang();
$language will give us the current language selected.
Website Root path
<?php echo $this->baseurl ?>
Template name
<?php echo $this->template;?>
$this->baseurl;
$this->template;
$this->params; // Template specific params object -- defined in the params.ini file
// From JDocument:
$this->base; // Document base URL -- redundant, as far as I can tell
$this->description; // Document description
$this->direction; // Contains the document direction setting (default='ltr')
$this->language; // Contains the document language setting (default='en-gb')
$this->link; // Document full URL
$this->title; // Document title
$this->_generator; // Document generator (default='Joomla! 1.5 - Open Source Content Management')