Skip to content

hiryu85/cakephp-flash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CakePhp flash plugin

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages