/** * @throws Kohana_Exception * * delete news */ public function action_del() { $id = $this->request->param('id'); $id = Security::encode_php_tags(HTML::chars($id)); $news = new Model_New(); $news->delNew($id); HTTP::redirect($_SERVER['HTTP_REFERER']); }