Pergunta

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' );
Foi útil?

Solução

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' );
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top