Passando parâmetros no Joomla 3.x

Ver para o controlador

views / foo / tmpl.form.php

<input type="hidden" name="Itemid" value="<?php echo $itemid; ?>" />
<input type="hidden" name="id" value="
<?php echo $id; ?>" />

controladores / foo.php

public function save(){
$app
= JFactory::getApplication();
$itemid
= $app->input->getInt('Itemid');
$id
= $app->input->getInt('id');
......
$link
= "....Itemid={$itemid}"; // 'I' must be capital, which is weird....XD
$this
->setRedirect($link,"Redirecting...");

}

URL para modelo

usando JInput:

public function getSome(){
$jinput
= JFactory::getApplication()->input;
$itemid
= $jinput->getInt('itemid', 0 );
$id
= $jinput->getInt('id', 0 );
}