tp5.1 'think\Container' not found

扒皮狼

关注

阅读 104

2022-07-27


第一次使用5.1,刚Git下来,提示Fatal error: Class 'think\Container' not found
是我哪里操作不对吗

tp5.1

原因:核心代码版本不对

解决:

由于目前仓库默认分支不是5.1版本,你需要切换到5.1分支(首先进入thinkphp目录后执行下面的命令)

tp5.1

打开进入这个文件夹

git checkout 5.1

tp5.1

 

参考:

​​http://www.thinkphp.cn/topic/57325.html​​

 

 

 

精彩评论(0)

0 0 举报