txxkirsch / cakephp-xflash
XFlash plugin for CakePHP
Installs: 6
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:cakephp-plugin
Requires
- php: >=7.2
- cakephp/cakephp: ^4.3 || ^5.0
This package is auto-updated.
Last update: 2025-05-19 21:37:34 UTC
README
Add this to your AppController::initialize()
$this->loadComponent('XFlash.Flash', [ 'renderHeader' => [ 'ajax' => false, ], ]);
Add this to your AppView::initialize()
$this->loadHelper('XFlash.Flash', []);
Use it like the default CakePHP Flash-Plugin
$this->Flash->success(__('Big success'), $options);