getContext()->getRequest(); // 接收信息 $id = intval($request->getParameter('id')); $sql = "delete from lkt_extension where id = '$id'"; $db->delete($sql); echo 1; return; } public function execute(){ return $this->getDefaultView(); } public function getRequestMethods(){ return Request :: NONE; } } ?>