getContext()->getRequest(); $id= $request->getParameter('id'); $sql = "select * from lkt_config where id = '1'"; $r = $db->select($sql); $uploadImg = $r[0]->uploadImg; // 图片上传位置 $sql01 = "select * from lkt_set_notice where id = $id"; $res_notice = $db->select($sql01); $request->setAttribute("uploadImg",$uploadImg); $request->setAttribute("res_notice",$res_notice); return View :: INPUT; } public function execute() { } public function getRequestMethods(){ return Request :: POST; } } ?>