/** * Add a set * * @return void */ public function addsetAction() { $request = $this->getRequest(); $form = new Logic_Ws_ServiceSet_Form_Add(); if ($this->getRequest()->isPost()) { if ($form->isCancelled($this->getRequest()->getPost())) { $this->_helper->redirector('index', null, null); return; } elseif ($form->isValid($this->getRequest()->getPost())) { try { $values = $form->getValues(); $this->_model->insertSet($values); $this->_helper->messenger->success(); $this->_helper->redirector('index'); return; } catch (Logic_Exception $e) { $this->_helper->messenger->error(); } } } $this->view->form = $form; }