Cakephp setFlash() Flash() Custom Error messages

In cakephp you can achieve custom style class to Session->flash() method by using layout parameter. So you can apply different style to messages like “Error”,”Notice” or “Success” message. In your controller file you might have a typical code like this. The “flash_success” and “flash_failure” parameter represents a layout file. so you have to create two layout…