Cakephp - Session->setFlash is not working any more.

less than 1 minute read

Question: setFlash() no longer showing up on the page. Why ? $this->Session->setFlash("Hello world");

Answer As of CakePHP version 1.2 you need to tell the template where to put the flash message

<?php $session->check('Message.flash')) { $session->flash(); } ?>

Leave a comment