On CakePHP we can get ALL POST/GET using
$this->params
On Yii, I am not sure if it has a equivalent. Only saw if I want to get one field value regardless if (POST/GET), but I need to specify it.
Yii::app()->request->getParam('email')
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In Yii it’s perfectly fine to use
$_REQUEST,$_POST,$_GETdirectly.What
getParamreally does is use those arrays directly anyway, but with the difference that if the param doesn’t exist it returnsnullby default, or a value that you specify as the second argument to thegetParamcall:Source: