2017 © Pedro Peláez
 

cakephp-plugin cakephp-flash

CakePHP Flash component for Twitter bootstrap, Alertify

image

hiryu85/cakephp-flash

CakePHP Flash component for Twitter bootstrap, Alertify

  • Sunday, March 22, 2015
  • by hiryu85
  • Repository
  • 1 Watchers
  • 0 Stars
  • 14 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

CakePhp flash plugin

Use Cake's flash message with Twitter Bootstrap or Alertify, (*1)

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

The Versions

22/03 2015

dev-master

9999999-dev

CakePHP Flash component for Twitter bootstrap, Alertify

  Sources   Download

The Requires

 

cakephp session flash alertify twitter-bootstrap