PHP code example of alse0017 / yii2-flashmsg-widget

1. Go to this page and download the library: Download alse0017/yii2-flashmsg-widget library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

alse0017 / yii2-flashmsg-widget example snippets


Yii::$app->getSession()->addFlash('error', 'Error Message');
Yii::$app->getSession()->addFlash('success', 'Success Message');
Yii::$app->getSession()->addFlash('info', 'Info Message');

\alse0017\flashmsg\Widget::widget();