/** Delete a coroner * @access public * @return void */ public function deleteAction() { if ($this->_request->isPost()) { $id = (int) $this->_request->getPost('id'); $del = $this->_request->getPost('del'); if ($del == 'Yes' && $id > 0) { $where = 'id = ' . $id; $this->_coroners->delete($where); } $this->getFlash()->addMessage('Coroner\'s information deleted!'); $this->redirect($this->_redirectUrl); } else { $id = (int) $this->_request->getParam('id'); if ($id > 0) { $this->view->coroner = $this->_coroners->fetchRow('id =' . $id); } } }