How do I get the module parameter inside a component in Joomla 1.5? I am using this code but it displays an empty result.
jimport( 'joomla.application.module.helper' );
$module = &JModuleHelper::getModule( 'mod_used_car_image');
$params = new JParameter($module->params);
print_r($params);
You need to call the ‘name’ of your module, not the ‘type’ of module.
Let’s say you named your module ‘Used Car Image’, your code should be:
Here’s the manual:
http://docs.joomla.org/JModuleHelper/getModule