HyderA
HyderA

Reputation: 21371

CodeIgniter: post variable not being read

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);

Upvotes: 0

Views: 1406

Answers (1)

BraedenP
BraedenP

Reputation: 7215

You should be using:

$this->input->post('your_post_variable');

Upvotes: 4

Related Questions