摘要: $admin=0; if($admin!=10){ //跳转页面 $this->success('登录失败','login/index'); $this->error('登录失败'); $this->redirect('login/index'); 三种跳转方式的区别 // * success跳转需 阅读全文
posted @ 2020-09-15 16:16 summer° 阅读(1101) 评论(0) 推荐(0)
摘要: 一、请求1、获取当前的请求信息​ 1、声明:使用\think\Request类 :use:think\Reuqnestl​ 2、使用:Reuqest::instance();​ 助手函数:$request = request();2、检查变量是否设置(存在) 变量检测支持所有支持的系统变量 1、使用 阅读全文
posted @ 2020-09-15 16:12 summer° 阅读(161) 评论(0) 推荐(0)