Retrieving Joomla 1.5 Component, Module, Plugin and Template Parameters


In Joomla 1.5 parameters enable users to configure settings that later can be used in code of extensions and templates. Following are the ways that can help a developer to access these parameters.

Component Parameters

From inside a Component:

1.$componentParams = &JComponentHelper::getParams('com_example');
2.$param = $componentParams->get('parameter_name', 'default_value');

From outside a Component:

1.$componentParams = &JComponentHelper::getParams('com_example');
2.$param = $componentParams->get('parameter_name', 'default_value');