function delete_query($studyId, $queryId) { $this->load->model('QueryModel'); QueryModel::delete($queryId); $this->location('/study/' . $studyId); }