think\image” not found 问题解决

错误记录:

“think\image” not found

错误原因:

框架的依赖自动注入出错,引用方式如下 \think\image::open($imgSrc);

解决方案:

把 ./vendor/topthink/think-image/src下的文件(包括image.php和image文件夹) 移动到 ./thinkphp/library/think 目录下

posted @ 2024-07-12 12:34  黄文Rex  阅读(97)  评论(0)    收藏  举报