Class 'think\Image' not found

浏览:7984 发布日期:2017/08/07 分类:ThinkPHP5专区 关键字: class not found
系统环境为linux

composer require topthink/think-image 装上了扩展

控制器头部加了 use think\Image
然后\think\image::open($imgSrc);提示Class 'think\Image' not found

去文件夹找了一圈,发现确实有think-image
然后尝试直接引用文件
require(ROOT_PATH.'/tp5/vendor/topthink/think-image/src/Image.php');

然后正常使用,为什么
最佳答案
评论( 相关
后面还有条评论,点击查看>>