views:

318

answers:

1

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);
+4  A: 

You should be using:

$this->input->post('your_post_variable');
BraedenP
Whoops! :DThanks
gAMBOOKa