Pages

Wednesday, August 10, 2011

Check in Cakephp if Flash Message has been set or not

Here is the code which helps to check if flash message has been set or not..sometimes its a need to use a default message if it is not set..

if(!($this->Session->check('Message.flash'))));

No comments:

Post a Comment