txxkirsch/cakephp-xflash

XFlash plugin for CakePHP

Installs: 6

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:cakephp-plugin

1.2 2025-04-19 21:20 UTC

This package is auto-updated.

Last update: 2025-05-19 21:37:34 UTC


README

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);