I want to redirect to a page from a controller in zend. Before redirection I want to set some values in the request object and then I want to get these values on the controller where I have redirected.
I can do it by query string but I dont want to send these values in URL.
Please let me know:
- How can I set these values in request object in zend.
- How can I get these values after redirection.
- Which method should I use for redirection.
The main aim is to avoid using query sting. Let me know the solution.
Thanks in advance.
Pravin
If session is not acceptable then I can see two ways:
use _forward method and execute new action in scope of current request
http://framework.zend.com/manual/en/zend.controller.action.html#zend.controller.action.utilmethods
use empty page that contains form with hidden elements that will be automatically submitted by javascript