// Joomla 3.x $componentParams = JComponentHelper::getParams('com_mycomponent'); $value = $componentParams->get('my_param_name');
// Joomla 1.5 require_once(JPATH_COMPONENT.DS.'controller.php'); $componentParams = &JComponentHelper::getParams('com_mycomponent'); $value = $componentParams->get('my_param_name');In the above examples, we retrieve the component parameters using the getParams function and then extract a specific parameter value using the get function. Package/Library: The JComponentHelper class is part of the Joomla! CMS core and can be found in the libraries/joomla/application/component/helper.php file.