Welcome Guest, Not a member yet? Register   Sign In
Undefined property: CI_Input::$post
#1

[eluser]joe_h[/eluser]
Hi I try to insert data through a controller that calls a function of the model and gives me the following error:

A PHP Error was encountered
Severity: Notice
Message: Undefined property: CI_Input::$post
Filename: ......php
Line Number: ....


Code that is in the function of this model is:

Code:
$this->provincia = $this->input->post['provincia'];
        if($this->provincia){
            $data = array(
                'provincia' => $this->provincia
            );
            $query = $this->db->insert('provincias', $data);

Any idea???



Messages In This Thread
Undefined property: CI_Input::$post - by El Forum - 02-02-2012, 11:01 AM
Undefined property: CI_Input::$post - by El Forum - 02-02-2012, 12:01 PM
Undefined property: CI_Input::$post - by El Forum - 02-02-2012, 12:14 PM
Undefined property: CI_Input::$post - by El Forum - 02-02-2012, 12:15 PM



Theme © iAndrew 2016 - Forum software by © MyBB