I have one page (view) and I want to pass some parameters from this page (view) to controller (where im going to generating form etc…). How i can pass some parameters from view to controller?
I know one way: link with GET parameters (?foo=bar&..) but in this way user see his params. Mbe it possible to pass as POST? How?
Thx a lot.
To pass POST variables to your Zend Framework application, simply submit a POST request. You can do this either by submitting a form to the URL that’s bound to the controller action, or via an AJAX request.
When working inside a controller action, you get POST variables using:
Also helpful, when processing forms is to determine if a request is actually a POST operation: