Suggest a feature
×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: AUREO SOUTO
Added: Dec 11, 2018 12:05 PM
Views: 14
Tags: no tags
  1. <?php
  2. foreach (Yii::$app->session->getAllFlashes() as $key => $message) {
  3. echo '<div class="alert alert-' . $key . '">' . $message . '</div>';
  4. }
  5. ?>