Welcome Guest, Not a member yet? Register   Sign In
[PROBLEM] $this->load->library(array('session'));
#7

[eluser]wafaa[/eluser]
[quote author="batangai" date="1205799815"]
Quote:
Code:
$this->load->library(session);
            
            //on met le tt ds la session    
            $this->load->library('session');
            $this->session->set_userdata('data', $data['adherent_tb']);    
            
            $this->load->model('projet/a_modif_model');        
            $this->a_modif_model->index();        
        }
    }    
}
?>
remove this line from your code and try again
Code:
$this->load->library(session);
[/quote]


No this is not my error! I just forgot to remove it.
My error was that i put
Code:
$this->session->set_userdata('data', $data['adherent_tb']);
instead of this
Code:
$this->session->set_userdata('data', $data

Now it works but I still have the famous error in my view:

Severity: Warning

Message: Cannot modify header information - headers already sent by (output started at c:\program files\easyphp1-8\www\codeigniter_1.6.1\system\libraries\Input.php:1)

Filename: libraries/Session.php

Line Number: 295


So... does some one know why ?!


Messages In This Thread
[PROBLEM] $this->load->library(array('session')); - by El Forum - 03-17-2008, 12:58 PM
[PROBLEM] $this->load->library(array('session')); - by El Forum - 03-17-2008, 01:08 PM
[PROBLEM] $this->load->library(array('session')); - by El Forum - 03-17-2008, 01:13 PM
[PROBLEM] $this->load->library(array('session')); - by El Forum - 03-17-2008, 01:16 PM
[PROBLEM] $this->load->library(array('session')); - by El Forum - 03-17-2008, 01:17 PM
[PROBLEM] $this->load->library(array('session')); - by El Forum - 03-17-2008, 01:23 PM
[PROBLEM] $this->load->library(array('session')); - by El Forum - 03-17-2008, 01:39 PM
[PROBLEM] $this->load->library(array('session')); - by El Forum - 03-17-2008, 03:12 PM



Theme © iAndrew 2016 - Forum software by © MyBB