ipub / flash-messages
Flash messages handler for Nette Framework
Requires
- php: >=7.1.0
- latte/latte: ^2.5
- nette/application: ^3.0
- nette/di: ^3.0
- nette/http: ^3.0
- nette/utils: ^3.0
Requires (Dev)
- contributte/translation: ^0.1.0
- nette/bootstrap: ^3.0
- nette/forms: ^3.0
- nette/mail: ^3.0
- nette/robot-loader: ^3.0
- nette/safe-stream: ~2.4
- nette/tester: ~2.0
- pds/skeleton: ~1.0
- tracy/tracy: ^2.0
Suggests
- contributte/translation: Option for message translation
README
Flash messages handler for Nette Framework
This extension replace default flash messages handling. If you want to use one interface for displaying messages, use this extension. For eg. if you are showing messages in modal windows, but sometimes this windows are deactivated, you can reach it with this extension. It store messages in one place and check if were displayed or not.
Installation
The best way to install ipub/flash-messages is using Composer:
$ composer require ipub/flash-messages
After that you have to register extension in config.neon.
extensions:
flashMessages: IPub\FlashMessages\DI\FlashMessagesExtension
Package contains trait, which you will have to use in presenters or components to implement Flash messages component factory.
<?php class BasePresenter extends Nette\Application\UI\Presenter { use IPub\FlashMessages\TFlashMessages; // ... }
Documentation
Learn how to use flash messages in different way in documentation.
Homepage https://www.ipublikuj.eu and repository http://github.com/iPublikuj/flash-messages.