|
@ -21,7 +21,7 @@ class MsgViewHelper extends ViewHelper |
|
|
{ |
|
|
{ |
|
|
if ($msg && $type) { |
|
|
if ($msg && $type) { |
|
|
if (!in_array($type, array(self::SUCCESS, self::ERROR))) { |
|
|
if (!in_array($type, array(self::SUCCESS, self::ERROR))) { |
|
|
throw new InitializationException('Unknown message type: "' . $type . '"'); |
|
|
|
|
|
|
|
|
throw new GeneralException('Unknown message type: "' . $type . '"'); |
|
|
} |
|
|
} |
|
|
Session::set(__CLASS__, array('message' => $msg, 'type' => $type)); |
|
|
Session::set(__CLASS__, array('message' => $msg, 'type' => $type)); |
|
|
} |
|
|
} |
|
|