public function modifyentriesAction() { $request = $this->getRequest(); $id = $this->_helper->IdConvert->hexToStr($request->getParam('id')); $form = new Logic_Dictionary_Form_Entry(); $logic = new Logic_Dictionary(); if ($this->getRequest()->isPost()) { $post = $request->getPost(); if ($form->isCancelled($post)) { $this->_helper->redirector('show', null, null, array('id' => $request->getParam('id'))); return; } $form->preValidation($post); if ($form->isValid($form->getValues())) { try { $logic->createEntries($form, $id); } catch (Logic_Dictionary_Exception $e) { $this->_helper->messenger->error(); } $this->_helper->messenger->success(); $this->_helper->redirector('show', null, null, array('id' => $request->getParam('id'))); return; } } else { $defaults = $logic->getEntries($id); $form->setDefaults($defaults); } $this->view->form = $form; }