function ActionDeleteAction() { if ($this->request->id) { $a = new ActionModel(); $a->delete($this->request->id); } Project::getResponse()->redirect($this->request->createUrl('Dev', 'Actions', array('cid' => $this->request->cid))); }