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
所以问题是如何在整个页面中更改参数,所以如果我想在任何地方访问这些数据,我可以确保它们是安全的。是否可以仅将该参数更改为索引控制器。提前感谢!