|
|
@ -36,10 +36,10 @@ class Alert extends Widget |
|
|
|
if (in_array($type, $this->allowedTypes)) { |
|
|
|
if (in_array($type, $this->allowedTypes)) { |
|
|
|
$class = ($type === 'error') ? 'alert-danger' : 'alert-' . $type; |
|
|
|
$class = ($type === 'error') ? 'alert-danger' : 'alert-' . $type; |
|
|
|
Html::addCssClass($this->options, $class); |
|
|
|
Html::addCssClass($this->options, $class); |
|
|
|
echo BsAlert::widget(array( |
|
|
|
echo BsAlert::widget([ |
|
|
|
'body' => $message, |
|
|
|
'body' => $message, |
|
|
|
'options' => $this->options |
|
|
|
'options' => $this->options |
|
|
|
)); |
|
|
|
]); |
|
|
|
$session->removeFlash($type); |
|
|
|
$session->removeFlash($type); |
|
|
|
$this->_doNotRender = false; |
|
|
|
$this->_doNotRender = false; |
|
|
|
} |
|
|
|
} |
|
|
|