/** Delete a quote * @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->_quotes->delete($where); $this->getFlash()->addMessage('Quote/announcement deleted!'); } $this->redirect(self::REDIRECT); } else { $id = (int) $this->_request->getParam('id'); if ($id > 0) { $this->view->quote = $this->_quotes->fetchRow('id =' . $id); } } }