上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 22 下一页
摘要: public $page = ""; public $size = ""; public function getPageAndSize($data){ $this->page = empty($data['page'])?"1":$data['page']; $this->size = empty 阅读全文
posted @ 2020-07-02 00:50 X__cicada 阅读(136) 评论(0) 推荐(0)
摘要: <?php /** * User: xmz * Date: 2020-06-18 * Time: 00:15 */ namespace app\admin\controller; use app\common\lib\Upload; class Image extends Base { /** * 阅读全文
posted @ 2020-06-27 00:42 X__cicada 阅读(114) 评论(0) 推荐(0)
摘要: ` request->file('file'); $info = $file->validate(['size' => 5 * 1024 * 1024, 'ext' => 'gif,jpg,jpeg,bmp,png'])->move('upload'); if( $info ) { return $ 阅读全文
posted @ 2020-06-27 00:37 X__cicada 阅读(100) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2020-04-27 18:21 X__cicada 阅读(0) 评论(0) 推荐(0)
摘要: 工厂模式是一种创建型的设计模式,也是一种常用的实例化对象的设计模式,是用工厂方法来代替New 实例化对象的模式,工厂方法在使用的时候,返回的对象是没有关系的,单例模式使用的时候返回的始终是同一个对象, 简单工厂模式, 工厂方法模式, 抽象工厂模式, 阅读全文
posted @ 2020-04-13 00:20 X__cicada 阅读(146) 评论(0) 推荐(0)
摘要: 类:类是具备某项功能的抽象模型 对象:一个类实例化后的产物,是一个实体 属性,方法,实例化 基本特征:封装,继承,多态 设计模式:重用 三类 23 种 :创建型,结构型,行为型 创建型:工厂,抽象工厂,单例,建造者,原型。 结构型:适配器,桥接,装饰器,组合,外观,享元,代理 行为型:模板方法,命令 阅读全文
posted @ 2020-04-12 22:45 X__cicada 阅读(138) 评论(0) 推荐(0)
摘要: public function redirect(...$argc){ throw new HttpResponseException(redirect(...$argc)); } 阅读全文
posted @ 2020-04-10 22:01 X__cicada 阅读(309) 评论(0) 推荐(0)
摘要: <?php trait A{ public function a(){ echo "this is trait A a\n"; } public function b(){ echo "this is trait A b\n"; } } class Test{ use A; } //$test = 阅读全文
posted @ 2020-04-03 00:14 X__cicada 阅读(115) 评论(0) 推荐(0)
摘要: 使用tp6验证码需要先引入 composer require topthink/think-captcha 自定义验证码 在项目模块下新建控制器 <?php namespace app\admin\controller; use think\captcha\facade\Captcha; class 阅读全文
posted @ 2020-04-01 00:29 X__cicada 阅读(2472) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-03-30 00:02 X__cicada 阅读(171) 评论(0) 推荐(0)
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 22 下一页