getContext()->getRequest(); $id = intval(trim($request -> getParameter('id'))); $sql = 'delete from lkt_hotkeywords where id='.$id; $res = $db -> delete($sql); if($res > 0){ header("Content-type:text/html;charset=utf-8"); echo ""; } return View :: INPUT; } public function execute() { } public function getRequestMethods(){ return Request :: POST; } } ?>