Search code examples
joomlajoomla3.0joomla3.1sef

Joomla global options SEF


How to get global options SEF of Joomla 3? Searching whole day nothing found. This is for Joomla 1.5 need same on 3rd

$config =& JFactory::getConfig();
echo 'Site name is ' . $config->getValue( 'config.sitename' );

Solution

  • In Joomla 3.x, JRegistry::getValue() has been removed, so Use JRegistry::get() instead.

    So in a nutshell, here is the code you need to use:

    $config = JFactory::getConfig();
    echo 'Site name is ' . $config->get( 'sitename' );