getContext()->getRequest(); // 获取分类id $cat_id = intval($request->getParameter('cat_id')); // 根据分类id,删除这条数据 $sql = "delete from lkt_news_class where cat_id = '$cat_id'"; $db->delete($sql); header("Content-type:text/html;charset=utf-8"); echo ""; return; } public function execute(){ return $this->getDefaultView(); } public function getRequestMethods(){ return Request :: NONE; } } ?>