Kel*_*vin 5 php codeigniter composer-php
我试图League Glide用于显示我的图像,这是我的代码:
require(APPPATH.'vendor/autoload.php');
use League\Flysystem\Adapter\Local;
use League\Flysystem\Filesystem;
function league_image(){
$array = array(
'source' => new Filesystem(new Local(realpath(APPPATH.'../../images'))),
'cache' => new Filesystem(new Local(realpath(APPPATH.'../../images/cache/'))),
);
$server = League\Glide\ServerFactory::create(
$array;
);
$server->setSourcePathPrefix('source');
$server->setCachePathPrefix('cache');
return $server;
}
Run Code Online (Sandbox Code Playgroud)
我得到了 glide 文件夹,使用 zip 而不是将它移入 vendor
我遇到了以下错误:
致命错误:
Class 'League\Glide\ServerFactory' not found in C:\xampp\htdocs\deal\application\helpers\image_helper.php on line 106A PHP Error was encountered严重性:
Error信息:
Class 'League\Glide\ServerFactory' not found文档名称:
helpers/image_helper.php电话号码:
106回溯:
伙计们,你能指导我这个错误是如何显示的吗?在phpstrom课堂上定义了如果Ctrl+click和我要去的部分ServerFactory