Exemplo n.º 1
0
 /**
  * @throws Kohana_Exception
  *
  * admin delete book
  */
 public function action_del()
 {
     $id = $this->request->param('id');
     $id = Security::encode_php_tags(HTML::chars($id));
     $book = new Model_Guestbook();
     $book->delBook($id);
     HTTP::redirect($_SERVER['HTTP_REFERER']);
 }