replace Exception on GeneralException
This commit is contained in:
@ -18,7 +18,7 @@ class FormViewHelper extends ViewHelper
|
||||
{
|
||||
if ($this->data === null) {
|
||||
if ($form == null) {
|
||||
throw new Exception('Form name required for helper init');
|
||||
throw new InitializationException('Form name required for helper init');
|
||||
}
|
||||
$this->data = Session::get($form, array());
|
||||
Session::del($form);
|
||||
@ -34,7 +34,7 @@ class FormViewHelper extends ViewHelper
|
||||
return $this->view->escape($default);
|
||||
}
|
||||
|
||||
public function message($field)
|
||||
public function message($fgrepield)
|
||||
{
|
||||
if (isset($this->data['messages'][$field])) {
|
||||
return '<span class="error">' . $this->view->escape($this->data['messages'][$field]) . '</span>';
|
||||
|
Reference in New Issue
Block a user