public function getSubForm($name) { $subFormName = array_search($name, $this->_aMapAction); $subForm = parent::getSubForm($subFormName); //$aParams = $this->_controller->getRequest()->getParam($subForm->getName()); //echo $name . '-' . $aParams['form']; //print_r($aParams); exit; if ($this->_controller->getRequest()->isPost() and $subForm->isValid($this->_controller->getRequest()->getPost())) { $this->setStorage($subForm); $redirector = Zend_Controller_Action_HelperBroker::getStaticHelper('Redirector'); $redirector->setGotoRoute(array(), $this->getNextAction($subForm)); //$redirector->gotoRoute(array('action' => $this->getNextAction($subForm))); } $subForm->populate($this->getStorage()); return $subForm; }