When I execute $user_helper->save()
by pressing the OK button, I go to the action specified by the form. But when I execute $user_helper->cancel()
by pressing the Cancel button, what controls the action taken? Where in the API is $user_helper discussed?
When you run generate to create the model class a helper in also created in /app/helpers named {model}_helper.php
function cancel($url = array('action' => 'listing'))
{
return '<input type="button" value="'.$this->_controller->t('Cancel').'" style="width: auto;" onclick="window.location.href = \''.$this->_controller->urlFor($url).'\';" />';
}
Thank you Riffed. Your help will end up in the Wiki at Overview | Internal Navigation | Controller.
1 to 3 of 3