Retrieving Global Component Parameters From Another Component

Joomla provides the ability through a helper file in your current component to access another component’s global parameters.

The following will retrieve the parameter values of the component set at the jos_components table level.


jimport('joomla.application.component.helper');
$params = &JComponentHelper::getParams('com_somecomponent');
$val = $params->get('someparam');

Leave a comment

0 Comments.