user3659372
user3659372

Reputation:

request post open cart to codeigniter

I am trying to find out what is similar to the open cart $this->request->post['permission'] method and what is the same in codeigniter.

I know you have $this->input->post(); which is posting data.

But then I think you have $this->input->get();

Would the input get in codeigniter be closest to $this->request->post['permission']

Upvotes: 0

Views: 89

Answers (1)

knizhnikov
knizhnikov

Reputation: 299

In every request codeIgniter wraps the $_POST array and you can get values by calling $this->input->post('myKey'). And the same behaviour with $_GET array - $this->input->get('myKey'). So, if you want to get values of posted data, you need to call $this->input->post('myKey').

Upvotes: 1

Related Questions