I have a problem like this.I am using Code igniter to build a website.I want to pass a flash message when redirecting from a controller.For that I have make this code.
$data['message']=$this->session->set_flashdata('item', array('message' => 'Record created successfully','class' => 'success'));
var_dump($data['message']);
return;
redirect('question/index',$data);
Then i used var_dump to make sure that everything is work fine.but it print null.What is the issue of this.How can I fix this?