CodeIgniter how to use flash messages

  • home
  • /
  • PHP
  • /
  • CodeIgniter how to use flash messages

How to use

To use flash messages in CodeIgniter, we must configure session key in application/config/config.php file and we must load session library by using auto load mechanism or we can load it in controller.

To add flash data :

To read or get the data from flash data:

Simple example :

now open your view file (Example : products.php). Write code something like shown below.

 

Leave a Comment

sing in to post your comment or sign-up if you dont have any account.

18 + nineteen =

This site uses Akismet to reduce spam. Learn how your comment data is processed.