This commit is contained in:
resurtm
2016-12-21 14:01:59 +06:00
parent f66689ef49
commit a3434504e6
5 changed files with 16 additions and 9 deletions

View File

@ -11,8 +11,8 @@
use yii\bootstrap\Alert;
/*
* @var \Da\User\Module $module
/**
* @var $module Da\User\Module
*/
?>
@ -20,7 +20,7 @@ use yii\bootstrap\Alert;
<div class="row">
<div class="col-xs-12">
<?php foreach (Yii::$app->session->getAllFlashes() as $type => $message): ?>
<?php if (in_array($type, ['success', 'danger', 'warning', 'info'])): ?>
<?php if (in_array($type, ['success', 'danger', 'warning', 'info'], true)): ?>
<?= Alert::widget([
'options' => ['class' => 'alert-dismissible alert-'.$type],
'body' => $message,