Hello friends welcome to findnerd, in this blog we will discuss about flash messages in cakephp. Default flash messages will be customized. Cakephp has default warning messages for all actions. For example: Success flash message, Error flash message, Warning flash message, Information flash message etc. for various actions. Flash messages are displayed when controller action is redirected to another or the same page, these messages are built into session helper.
Lets begin with creating different elements depending on the type of message
Step 1: Create file success.ctp in app/View/Elements/ folder and write the following code in it.