public function preconditionsaveAction() { $this->view->listUrl = $this->view->url(array('action' => 'edit')); $service = new EngineBlock_Service_GroupProviderPrecondition(); $groupProviderPrecondition = $service->save($this->_getAllParams(), true); if (empty($groupProviderPrecondition->errors)) { $this->_redirect($this->view->url(array('action' => 'edit', 'group_provider_id' => $this->_getParam('group_provider_id')))); } else { $this->view->groupProviderPrecondition = $groupProviderPrecondition; $this->render('preconditionedit'); } }