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

Installs: 20

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 1

Open Issues: 1

Type:cakephp-plugin

dev-master 2015-03-22 16:17 UTC

This package is not auto-updated.

Last update: 2025-04-30 11:34:24 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