How to completely remove param from request object inside controller?
Is there a method for this?
Or i should pick all params, loop through them, remove and then set them all again?
This is Sparta? 😀
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.
To remove a parameter use unset php function or setParam() with a NULL value. If you want to loop use getParams() function from the request object.
Update
As params is a protected variable invoke __unset() to have access to inaccesible properties.
You will have to extend Zend_Controller_Request_Abstract for that.