public function deleteAction() { $id = $this->getRequest()->getParam('id'); $this->view->title = "Delete Variables "; $this->view->headTitle($this->view->title); if ($this->getRequest()->isPost()) { $del = $this->getRequest()->getPost('del'); if ($del == 'Yes') { $id = $this->getRequest()->getPost('id'); $tbl = new App_Model_Variables(); $mapper = new App_Model_VariablesMapper(); $row = $tbl->find($id); $mapper->delete($tbl); } $this->_helper->redirector('index'); } else { $tbl = new App_Model_Variables(); $this->view->id = $id; } }
public function find($id) { $mapper = new App_Model_VariablesMapper(); $mapper->find($id, $this); }