hiryu85 / cakephp-flash
There is no license information available for the latest version (dev-master) of this package.
CakePHP Flash component for Twitter bootstrap, Alertify
Package info
github.com/hiryu85/cakephp-flash
Type:cakephp-plugin
pkg:composer/hiryu85/cakephp-flash
dev-master
2015-03-22 16:17 UTC
Requires
This package is not auto-updated.
Last update: 2026-04-15 16:20:05 UTC
README
Use Cake's flash message with Twitter Bootstrap or Alertify
Install
- Clone/Copy plugin to your app/Plugin directory
- Add
CakePlugin::load('Flash')to your bootstrap.php
Load FlashComponent
Class AppController extends Controller {
public $components = [
'Flash.Flash' => [
'style' => 'AlertifyBootstrap', // Choose "TwitterBootstrap or AlertifyBootstrap"
],
];
}
Call FlashComponent from your Controller
$this->Flash->success('Post created'); // Use default Component style (Flash's style setting)
$this->Flash->twitter_success('Post created'); // Use TwitterBootstrap alert