public function deleteprojectAction() { if ($this->_getParam('id', false)) { $projects = new ResearchProjects(); $where = $projects->getAdapter()->quoteInto('id = ?', (int) $this->_getParam('id')); $projects->delete($where); } else { throw new Exception('There is no research project ID specified', 500); } }
/** Delete a project * @access public * @return mixed * @throws Pas_Exception_Param */ public function deleteprojectAction() { if ($this->getParam('id', false)) { $projects = new ResearchProjects(); $where = $projects->getAdapter()->quoteInto('id = ?', (int) $this->getParam('id')); $projects->delete($where); } else { throw new Pas_Exception_Param($this->_missingParameter, 404); } }