Hi, In different views I have forms which points to the same action when submitted. The problem is that, when the action is completed, I want to forward the user to that same view again including the submitted form.
How, from that action, can I forward the user to the appropriate view in a nice way ? For now, I have included a hidden input in each form, with ugly if statements in the action called when the form is submitted : // action was called by a form in view articles if($this->_request->getPost('viewArticles') == '1') { return $this->_forward('index', 'index', NULL, array('dateStart' => $dateStart)); } // action was called by a form in view customers else { return $this->_forward('index', 'customers', NULL, array('customer' => $customerId)); } You may also notice that the params to set up the views are different.... I simplified the code, the real code is a complete mess :) -- View this message in context: http://zend-framework-community.634137.n4.nabble.com/Design-problems-forward-to-different-view-from-an-action-tp3003744p3003744.html Sent from the Zend Framework mailing list archive at Nabble.com.