Welcome Guest, Not a member yet? Register   Sign In
code igniter : Weird problem : problem just in chrome : works fine in IE and Moz
#1

[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


Messages In This Thread
code igniter : Weird problem : problem just in chrome : works fine in IE and Moz - by El Forum - 06-05-2011, 11:34 PM



Theme © iAndrew 2016 - Forum software by © MyBB