Hello. I do right, when I want to abort the further execution?
public function indexAction()
{
//...
if ($error >= Main::ERROR_LIMIT) {
$this->view->setVars([
'hiddenForm' => true,
]);
return;
}
//do something ...
$this->view->setVars([
'form' => $form,
]);
}