Php – Get and post in cakephp

cakephpcakephp-1.3cakephp-2.0PHP

In Codeigniter I do this

$p=$this->input->post();

to get all objects posted but I don't know if there is something similar in cakephp to get all posted variables from a form ? I am writing a function to get posted password and save it into database in place of the old password recorded there.

I use native php to get 'posted' variables from a form, (I am not familiar with cakephp form usage) that is why, so instead of using $_POST['sssss'] what should I do now ?

Thank you for any help.

Best Answer

$value = $this->request->data('key');

Please for further reference, read the manual. It's so much easier and better for yourself to figure it out by yourself.

http://book.cakephp.org/2.0/en/controllers/request-response.html#accessing-post-data