摘要: 展示用户 搜索 添加用户 | 退出登录 | 角色展示 | 用户展示 全选 全不选 id 用户名 密码 操作 //p... 阅读全文
posted @ 2019-08-26 19:39 久醉121 阅读(210) 评论(0) 推荐(0) 编辑
摘要: 路由Route::get('/mysql', 'MysqlController@index');Route::get('/mysql/add', 'MysqlController@add');Route::post('/mysql/insert', 'MysqlController@insert') 阅读全文
posted @ 2019-07-27 11:03 久醉121 阅读(820) 评论(0) 推荐(0) 编辑
摘要: 登录页面 用户名: 密码: 登录 阅读全文
posted @ 2019-07-08 11:00 久醉121 阅读(93) 评论(0) 推荐(0) 编辑
摘要: public function index(Request $request) { $sou = input("get.sou"); // echo $sou; $list = Db('user')->where("name like '%$sou%'")->paginate(3,false,['query'=>request()->para... 阅读全文
posted @ 2019-07-01 17:05 久醉121 阅读(1327) 评论(0) 推荐(0) 编辑
摘要: class RbacController extends Controller { //rbac第二种方法 public function show() { //查询出数据 $data = DB::SELECT("select * from rbac"); //调用方法 $arr = $this->rbac($... 阅读全文
posted @ 2019-06-26 21:27 久醉121 阅读(593) 评论(0) 推荐(0) 编辑
摘要: class RbacController extends Controller { //rbac第一种方法 public function show() { //定义一个空的数组 $arr = []; //查询数据,查询出来是数据形式 $data = DB::SELECT("select * from rbac"); ... 阅读全文
posted @ 2019-06-26 21:23 久醉121 阅读(522) 评论(0) 推荐(0) 编辑
摘要: <?php //form表单传过来的上传的文件名称 $poth = $_POST['poth']; //获取上传的文件名 $tmp = $_FILES['poth']['tmp_name']; //上传的文件 保存指定路径 $poth = 'img/'.$_FILES['poth']['name']; //将上传的文件移动到新位置 move_uploaded_file($tmp, $p... 阅读全文
posted @ 2019-06-22 09:58 久醉121 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-06-22 09:32 久醉121 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 1 <!-- yii2.0用post可以直接传值 --> 2 <form action="index.php?r=控制器名/方法名" method="post"> 3 <input type="text" name="user"> 4 <input type="submit" value="添加"> 阅读全文
posted @ 2019-06-22 09:15 久醉121 阅读(426) 评论(0) 推荐(0) 编辑
摘要: 1 <!-- yii2.0用get方法传值 --> 2 <form action="index.php" method="get"> 3 <!-- yii2.0用get方法传值必须加入hidden才可以成功 --> 4 <input type="hidden" name="r" value="控制器 阅读全文
posted @ 2019-06-22 09:12 久醉121 阅读(238) 评论(0) 推荐(0) 编辑