Yii2 session flash message
Write below code in your controller
Yii::$app->session->setFlash('success', "This is a flash message");
Write below code in your view
Yii::$app->session->getFlash('success');
use yii\web\Session; $session = Yii::$app->session; // start session $session->open(); // close session $session->close(); ...
Nice blog...Very useful information is providing by ur blog..here is a way to find.
ReplyDeleteYii Framework Development Company