Skip to content

Latest commit

 

History

History
executable file
·
23 lines (17 loc) · 391 Bytes

File metadata and controls

executable file
·
23 lines (17 loc) · 391 Bytes

Flash plugin for CakePHP

Add this to your AppController::initialize()

$this->loadComponent('XFlash.Flash', [
	'renderHeader' => [
		'ajax' => false,
	],
]);

Add this to your AppView::initialize()

$this->loadHelper('XFlash.Flash', []);

Use it like the default CakePHP Flash-Plugin

$this->Flash->success(__('Big success'), $options);