Skip to content
Mark Scherer edited this page Oct 12, 2023 · 8 revisions

CakePHP version map

Flash plugin branch CakePHP core PHP min
1.x [EOL] cake3 3.8+ PHP 5.6
2.x cake4 4.0+ PHP 7.2
3.x master 5.x PHP 8.1

Tips

Prevent AuthComponent to use its own "auth" flash key

only needed for older CakePHP 3.x versions:

$this->loadComponent('Auth', 
    ['flash' => ['key' => 'flash', 'element' => 'error']]);

Then your default layout can stay simple:

<?= $this->Flash->render() ?>
Clone this wiki locally