How can I pass a parameter with joomla's dot notation using JToolBarHelper::cancel()?
In my controller, I'm using a required parameter in the cancel() method. Here's my code:
public function cancel($groupid)
{
$app = JFactory::getApplication();
$link = 'index.php?option=com_mycomponent&view=group&groupid=' . $groupid;
$app->redirect($link, NULL, NULL, FALSE);
}
In my view.html.php file, I've added:
JToolBarHelper::cancel('item.cancel', 'JTOOLBAR_CANCEL');
How/where can I include the $groupid parameter to cancel()? Or is there somewhere else I can set the redirect url?
Thanks!