![]() |
Undefined property: CI_Input::$post - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Undefined property: CI_Input::$post (/showthread.php?tid=48945) |
Undefined property: CI_Input::$post - El Forum - 02-02-2012 [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']; Any idea??? Undefined property: CI_Input::$post - El Forum - 02-02-2012 [eluser]Bhashkar Yadav[/eluser] correct you first line of code as Code: $this->provincia = $this->input->post('provincia'); Undefined property: CI_Input::$post - El Forum - 02-02-2012 [eluser]joe_h[/eluser] Here is the answer http://ellislab.com/forums/viewthread/73177/P310/#390918 $this->input->post is not an array, it’s a function/method, ie: $this->input->post(‘loginformsent’); Undefined property: CI_Input::$post - El Forum - 02-02-2012 [eluser]joe_h[/eluser] Thank you Bhashkar |