插件窝 干货文章 解决Could not open input file: think问题

解决Could not open input file: think问题

thinkphp 4013    来源:插件窝    2019-08-02

前几天做项目的时候,突然想用命令行创建TP5的控制器以及模型等

输入命令:

>php think make:controller admin/Abc

报错如下:

Could not open input file: think

开始以为是环境变量没配置,后来发现是项目根目录缺少think文件

把think文件放入根目录,问题解决。