Documentation

Config

Global Configuration

Accessing the global site configuration:

$jconfig = JFactory::getConfig();

Retrieving a value from the configuration:

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

Component Configuration

Although rarer than accessing the global site configuration, sometimes it is necessary to access component-specific configurations. This can be done as follows:

$config = JComponentHelper::getParams('com_mycomponent');

Retrieving a value from the configuration:

echo $config->get('paramName');

Last modified:

  • Copyright © 2022 Hubzero
  • Powered by Hubzero®