Tutorial by Examples

You can set flash data in controller just using this syntax $this->session->set_flashdata('message', 'Message you want to set'); Here 'message' is identifier for access data in view. You can Set more than one message by just changing identifier. for ex $this->session->set_flashdata...
You can simply access the fashdata in view like this <?php echo $this->session->flashdata('message'); ?> For access multiple message just change identifier For Ex. <?php echo $this->session->flashdata('my_alert'); ?> <?php echo $this->session->flashdata('my_wa...

Page 1 of 1