yii flash message
<?php Yii::$app->session->setFlash($type, $text); public function setMessage($text, $type = 'success') { Yii::$app->session->setFlash($type, $text); return $this; }