摘要:
//添加一条数据 $data = [ 'name'=>'wangwu', 'pwd'=>123456 ]; $res = db('user')->insert($data); //添加多条数据 $data = [ [ 'name'=>'ll', 'pwd'=>1 ], [ 'name'=>'zz', 阅读全文
posted @ 2021-01-09 11:34
soda001
阅读(140)
评论(0)
推荐(0)
摘要:
use think\Route; //自定义路由 Route::rule('login','admin/login/index'); //带参数的(也可以不带) Route::rule('adminedit/:id','admin/login/adminedit'); //限制访问类型(访问类型也可 阅读全文
posted @ 2021-01-09 11:29
soda001
阅读(240)
评论(0)
推荐(0)
摘要:
<img src="{:captcha_src()}" alt="captcha" /> 'captcha' => [ 'fontSize' => 18, 'imageH' => 30, 'imageW' =>100, 'length' => 5, 'reset' => true ] <img on 阅读全文
posted @ 2021-01-09 11:27
soda001
阅读(82)
评论(0)
推荐(0)
摘要:
public function add() { $data = input('post.'); $img = request()->file('img_banner'); $info = $img->move("./static/uploads/lunbo"); if ($info) { // 输出 阅读全文
posted @ 2021-01-09 11:25
soda001
阅读(128)
评论(0)
推荐(0)