https://github.com/derekisbusy/yii2-flash-growl
Display flash messages using growls.
https://github.com/derekisbusy/yii2-flash-growl
flash-messages growl growl-notifications growler
Last synced: 2 months ago
JSON representation
Display flash messages using growls.
- Host: GitHub
- URL: https://github.com/derekisbusy/yii2-flash-growl
- Owner: derekisbusy
- License: other
- Created: 2017-01-12T11:33:31.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-02-25T19:16:39.000Z (about 8 years ago)
- Last Synced: 2025-01-20T09:46:20.931Z (4 months ago)
- Topics: flash-messages, growl, growl-notifications, growler
- Language: PHP
- Size: 8.79 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Growl Flash Messages
====================[](https://github.com/derekisbusy/yii2-flash-growl/blob/master/LICENSE.md)
[](https://packagist.org/packages/derekisbusy/yii2-flash-growl)Widget to output flash messages as growls.
Installation
------------The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
Either run
```
composer require --prefer-dist derekisbusy/yii2-flash-growl "1.*"
```or add
```
"derekisbusy/yii2-flash-growl": "1.*"
```to the require section of your `composer.json` file.
Usage
-----Once the extension is installed, simply use it in your code by :
```php
// 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');```