[eluser]technology.guy[/eluser]
I have a function as below in controller_a
Code:
function abc()
{
$this->load->model('model_a');
$query = $this->model_b->get_data();
if($query)
{
$data = array(
'a' => true,
'b' => $query->b,
'c' => $query->c,
);
$this->session->set_userdata($data);
redirect('controller_a/view_a'); // simply calls a function that loads view_a
}
The problem is that in view_a
<?php echo $this->session->userdata('a'); works fine for b also works fine but for c it doesnt show anything.
Also I tried echoing $query->c int the controller before setting the data works fine but cant access it in the view .... dont know what is the problem
Any help will be appreciated
Thanks