tp6
hanxiaoyang6
这个作者很懒,什么都没留下…
展开
-
PHP 安装swagger文档api
1. 安装前端git clone https://github.com/swagger-api/swagger-ui.githttp://localhost/yii2/swagger-ui/dist/index.html 打开URL就可以看到前端界面了(内容还是默认的)之后找到dist目录, 打开index.html把其中的那一串url改成自己的, 比如http://localhost/yii2/swagger-docs/swagger.json(文件是通过下面的步骤生成的2.安...原创 2021-09-29 13:03:48 · 321 阅读 · 0 评论 -
tp6 知识点
容器和依赖注入$hh = app(User::class);$hh = app('User');app()->User->han()bind('hhhh', 'app\controller\User');var_dump(app()->hhhh->h123an());die;public function __construct(\think\App $app) { parent::__construct($app); }说的直白一点,F...原创 2021-07-30 15:53:24 · 226 阅读 · 0 评论