/** Add a manufacture methods */ public function addmanufactureAction() { $form = new ManufacturesForm(); $form->submit->setLabel('Add a new method'); $this->view->form = $form; if ($this->getRequest()->isPost() && $form->isValid($this->_request->getPost())) { if ($form->isValid($form->getValues())) { $manufactures = new Manufactures(); $update = $manufactures->add($form->getValues()); $this->_redirect($this->_redirectUrl . 'manufactures'); $this->_flashMessenger->addMessage('A new manufacturing method has been created on the system!'); } else { $form->populate($form->getValues()); } } }