摘要:
<?php //使用session //设置session // session_start(); // $_SESSION['a'] = 'admin'; //设置cookie,如果有cookie,说明用户已经登陆或者cookie在过期时间内,可以进行页面跳转,直接跳转到首页 if($_COOKI 阅读全文
posted @ 2021-01-05 14:28
孙旋
阅读(67)
评论(0)
推荐(0)
摘要:
//模拟登录 // $admin = 0; // if($admin != 10){ // //页面跳转 // $this->success('登录失败','login/index'); // $this->error('登录失败'); // $this->redirect('login/index 阅读全文
posted @ 2021-01-05 14:25
孙旋
阅读(160)
评论(0)
推荐(0)
摘要:
/** * 使用助手函数不需要引入request类 * */ //判断请求类型 // Request::instance()->isPost(); // request()->isPost(); //判断变量是否设置 // Request::instance()->has('变量名','提交方式') 阅读全文
posted @ 2021-01-05 08:36
孙旋
阅读(112)
评论(0)
推荐(0)
摘要:
恢复内容开始 null 恢复内容结束 阅读全文
posted @ 2021-01-05 08:32
孙旋
阅读(54)
评论(0)
推荐(0)

浙公网安备 33010602011771号