PHP code example of derekisbusy / yii2-flash-growl
1. Go to this page and download the library: Download derekisbusy/yii2-flash-growl 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/ */
derekisbusy / yii2-flash-growl example snippets
// add flash messages under category growl...
Yii::$app->getSession()->addFlash('growl', [
'type' => 'success',
'duration' => 1500,
'icon' => 'fa fa-success',
'title' => 'Success!',
'message' => 'Action has been performed.',
]);
// Display growls in your view...
echo \derekisbusy\growl\FlashGrowlWidget::widget();
// Or render the _growl view in the controller if you only need to render the growls...
return $this->renderAjax('@derekisbusy/yii2-growl/_growl');