How to set flash message in Codeigniter

How to set flash message in Codeigniter

$this->session->mark_as_flash(‘item’); # Version 3.x only
$this->session->mark_as_flash(array(‘item’, ‘item2’)); # Version 3.x only Array to flash

Alternatively,
$this->session->set_flashdata(‘item’, ‘value’);

 

 

Share this post

Leave a Reply

Your email address will not be published. Required fields are marked *