documentation update + code fixes
This commit is contained in:
@ -21,10 +21,12 @@ use yii\bootstrap\Alert;
|
||||
<div class="col-xs-12">
|
||||
<?php foreach (Yii::$app->session->getAllFlashes() as $type => $message): ?>
|
||||
<?php if (in_array($type, ['success', 'danger', 'warning', 'info'], true)): ?>
|
||||
<?= Alert::widget([
|
||||
'options' => ['class' => 'alert-dismissible alert-'.$type],
|
||||
<?= Alert::widget(
|
||||
[
|
||||
'options' => ['class' => 'alert-dismissible alert-' . $type],
|
||||
'body' => $message,
|
||||
]) ?>
|
||||
]
|
||||
) ?>
|
||||
<?php endif ?>
|
||||
<?php endforeach ?>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user