You are here: Documentation1.0.0Web Developers GuideConfig

Documentation: Web Developers Guide

Quick Nav

3.1.0 Config

3.1.1 Joomla! Configuration

Accessing the global Joomla! site configuration:

$jconfig =& JFactory::getConfig();

Retrieving a value from the configuration:

echo $config->getValue('config.sitename');

Last Modified: 2009-10-07 09:56:06 Back to the top

3.1.2 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');

Last Modified: 2009-10-07 10:07:21 Back to the top