public function deleteAction() { $this->view->title = "Delete Cuisine"; $this->view->headTitle($this->view->title, 'PREPEND'); if ($this->getRequest()->isPost()) { $del = $this->getRequest()->getPost('del'); if ($del == 'Yes') { $id = $this->getRequest()->getPost('id'); $cuisines = new Model_DbTable_Cuisines(); $cuisines->deleteCuisine($id); } $this->_redirect('/cuisine'); } else { $id = $this->_getParam('id', 0); $cuisines = new Model_DbTable_Cuisines(); $this->view->cuisine = $cuisines->getCuisine($id); } }