I'm new with Zend Framework but i didn't find solution yet. Problem is next: I have form, when is submitted user goes to index controller and there is an add action. I know how i can get params, This is what i want do:
$clear = $this->getRequest()->getParams();
foreach ($clear as $key => $value) {
$clear[$key]=trim(strip_tags($value));
}
$this->setRequest()->setParams($clear);//error, Argument 1 passed to Zend_Controller_Action::setRequest() must be an instance of Zend_Controller_Request_Abstract
So question is how to change in whole page that params, so if i want anywhere access that data i could be sure that they are safe. And is it possible to change that params only to index controller. Thanks in advance!