Skip to content

okomeworld/BootstrapAlert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

BootstrapAlert

TwitterBootstrap Plugin for CakePHP2.xに基づいたアラート関連のプラグイン

必須プラグイン

TwitterBootstrap Plugin for CakePHP2.x

使い方

app/Pluginディレクトリにファイルを設置して以下をコントローラに追加

public $components = array(
	'Session',
	'BootstrapAlert.BootstrapAlert',
);

以下を記述することでbootstrapアラート仕様のSessionComponent::setFlash()を実行可能

// alert-success
$this->BootstrapAlert->set('Set flash message.', 'success');

// alert-error
$this->BootstrapAlert->set('Set flash message', 'error');

// alert-block
$this->BootstrapAlert->set('Set flash message.', 'block');

// alert-info
$this->BootstrapAlert->set('Set flash message.', 'info');

// Default is alert-success
$this->BootstrapAlert->set('Set flash message.');

About

TwitterBootstrap Plugin for CakePHP2.xに基づいたアラート関連のプラグイン

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages