I would like to turn GET params coming from a form into ZF params:
Controller:
$front = Zend_Controller_Front::getInstance();
$front->setParams($_GET);
$front->getRequest()->setParams($_GET);
$front->getRouter()->setParams($_GET);
$form->isValid($this->_getAllParams());
View:
$this->url(array('page' => $somePage));
Validating the form works just fine. However, the url helper seems to ignore
the new parameters even though I'm not resetting the route. Is there
something I've overlooked that would make it work?
-----
The reasoning behind all this is that I have a search form that uses "GET"
instead of "POST" to prevent browser warnings about expired post data.
So in order to preserve the search criteria when sorting or changing the
page I have to convert GET params to ZF params as the url helper doesn't
preserve GET params at all.
--
View this message in context:
http://www.nabble.com/Url-helper-ignores-setParams%28%29-----why--tp24484423p24484423.html
Sent from the Zend Framework mailing list archive at Nabble.com.