Domanda

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' );
È stato utile?

Soluzione

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' );
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top