I have a controller user with a method login
For some reason, when I call:
$this->post
I get an error Undefined property: User::$post
While, this works fine:
print_r($_POST);
asked Nov 8, 2009 at 5:00
HyderA
21.6k48 gold badges117 silver badges183 bronze badges
1 Answer 1
You should be using:
$this->input->post('your_post_variable');
answered Nov 8, 2009 at 5:42
BraedenP
7,2354 gold badges35 silver badges44 bronze badges
Sign up to request clarification or add additional context in comments.
Comments
lang-php