Config
Joomla! Configuration
Accessing the global Joomla! site configuration:
$jconfig =& JFactory::getConfig();
Retrieving a value from the configuration:
echo $config->getValue('config.sitename');
HUB Configuration
Although rarer than accessing the global Joomla! site configuration, sometimes it is necessary to access HUB-specific configurations. This can be done as follows:
$xhub =& XFactory::getHub();
Retrieving a value from the configuration:
echo $xhub->getCfg('hubShortName');