public function addAction() { $this->view->title = "New Cuisine"; $this->view->headTitle($this->view->title, 'PREPEND'); $form = new Form_Cuisine(); $form->submit->setLabel('Add Cuisine'); $this->view->form = $form; if ($this->getRequest()->isPost()) { $formData = $this->getRequest()->getPost(); if ($form->isValid($formData)) { $name = $form->getValue('name'); $cuisines = new Model_DbTable_Cuisines(); $cuisines->addCuisine($name); $this->_redirect('/cuisine'); } else { $form->populate($formData); } } }