Hello all,
I'm developing an MVC component and trying to use parameters in front-end. In one view of the component I coded:
jimport( 'joomla.html.parameter' );
$paramsdefs = JPATH_COMPONENT.DS.'models'.DS.'itemparams.xml';
$params = new JParameter($item->params, $paramsdefs);
and it works well doing gets over the $params object. I do
$params->get('value','','group');
and it returns the right value.
The problem is that the method:
$params->getGroups()
Always return 'false'... I don't know why...
My itemparams.xml file:
<root>
<params group="group">
<param type="text" name="value" size="10" label="a label:" description="a description" />
</params>
</root>
Any help will be apreciated. Regards: framontb