php - Zend Framework, getParams -> setParams -
i'm new zend framework didn't find solution yet. problem next: have form, when submitted user goes index controller , there add action. know how can params, want do:
$clear = $this->getrequest()->getparams(); foreach ($clear $key => $value) { $clear[$key]=trim(strip_tags($value)); } $this->setrequest()->setparams($clear);//error, argument 1 passed zend_controller_action::setrequest() must instance of zend_controller_request_abstract
so question how change in whole page params, if want anywhere access data sure safe. , possible change params index controller. in advance!
change setrequest() getrequest().
$this->getrequest()->setparams($clear);
Comments
Post a Comment