Php – Get and post in cakephp


In Codeigniter I do this


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 Solution

$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.