摘要:
安装图片处理类库 composer require topthink/think-image 打开图片 $image = \think\Image::open('./image.png'); $image = \think\Image::open(request()->file('image')); 阅读全文
posted @ 2021-11-01 01:55
胡勇健
阅读(335)
评论(0)
推荐(0)
摘要:
thinkphp版本 5.0.24 安装验证码库 composer require topthink/think-captcha=1.0.8 captcha_img()方法修改 vendor\topthink\think-captcha\src\helper.php function captcha 阅读全文
posted @ 2021-11-01 01:14
胡勇健
阅读(222)
评论(0)
推荐(0)
摘要:
单文件上传 控制器 application/index/index.php <?php namespace app\index\controller; use think\Controller; class Index extends Controller { public function ind 阅读全文
posted @ 2021-11-01 00:45
胡勇健
阅读(375)
评论(0)
推荐(0)
摘要:
用法 控制器 <?php namespace app\index\controller; use think\Controller; class Index extends Controller { public function index() { $users = model('user')-> 阅读全文
posted @ 2021-11-01 00:32
胡勇健
阅读(74)
评论(0)
推荐(0)
摘要:
多语言配置 config.php 默认语言 'default_lang' => 'zh-cn', 开启语言切换 'lang_switch_on' => true, 英文包 application/lang/en-us.php <?php return [ 'title' => 'Title', 'l 阅读全文
posted @ 2021-11-01 00:10
胡勇健
阅读(262)
评论(0)
推荐(0)

浙公网安备 33010602011771号