Sunday, January 10, 2010

Acessing the global configuration in joomla

Hi
In order to retrieve the value of any variable found in the configuration file use this code
global $mainframe;
$mainframe->getCfg('mailfrom');
$mainframe->getCfg('fromname');

No comments: