/** Delete a mint * @access public * @return void */ public function deletemintAction() { if ($this->_request->isPost()) { $id = (int) $this->_request->getPost('id'); $del = $this->_request->getPost('del'); if ($del == 'Yes' && $id > 0) { $mints = new Mints(); $where = 'id = ' . $id; $mints->delete($where); } $this->redirect($this->_redirectUrl . 'mints'); } else { $id = (int) $this->_request->getParam('id'); if ($id > 0) { $mints = new Mints(); $this->view->mint = $mints->fetchRow('id=' . $id); } } }