Skip to content

lwrbakro/cakephp-flash

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CakePhp flash plugin

Use Cake's flash message with Twitter Bootstrap or Alertify

Requirement

CakePHP 2.x

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

  • PHP 100.0%