Saturday, March 2, 2013

Get Site's Global Configuration in Joomla

The Global configuration in Joomla Administration.These global configuration are stored in the file "JoomlaBase/configuration.php".Sometimes it is required to get these global configuration in component,module,template or plugin.See below code foe get this details.

Getting a configuration object :

$config =& JFactory::getConfig();

Now getting the Value :

you need to get 'fromname'.It is present in the file "JoomlaBase/configuration.php".You can get 'fromname' by getValue() function as shown below.
$config->getValue( 'fromname' );

No comments:

Post a Comment

Thanks....