tuer
- tuer 2016-04-01 已签到连续签到2天,获得了10个金钱
- tuer 收藏了扩展Yii2 的短信扩展
- tuer 2016-03-31 已签到连续签到1天,获得了5个金钱
hi 你好:
我使用php composer.phar require --prefer-dist yiisoft/yii2-imagine
安装好了yii2-imagine插件,然后依赖库imagine/imagine也安装了,但是使用的时候还是报
PHP Fatal Error – yii\base\ErrorException Class 'Imagine\Image\ManipulatorInterface' not found
yii2扩展文件中也已经添加
'yiisoft/yii2-imagine' => array ( 'name' => 'yiisoft/yii2-imagine', 'version' => '9999999-dev', 'alias' => array ( '@yii/imagine' => $vendorDir . '/yiisoft/yii2-imagine', ), ),
vender目录结构:
denghp@denghp:~/webroot/yii2-demo$ ll vendor/
total 76
drwxrwxr-x 18 denghp denghp 4096 6月 27 22:50 ./
drwxrwxr-x 13 denghp denghp 4096 7月 22 23:18 ../
-rw-rw-r-- 1 denghp denghp 183 6月 23 22:37 autoload.php
drwxrwxr-x 3 denghp denghp 4096 6月 23 22:37 fzaninotto/
drwxr-xr-x 3 denghp denghp 4096 6月 27 22:49 imagine/
drwxrwxr-x 11 denghp denghp 4096 7月 22 23:22 yiisoft/
denghp@denghp:~/webroot/yii2-demo$ ll vendor/yiisoft/
total 52
drwxrwxr-x 11 denghp denghp 4096 7月 22 23:22 ./
drwxrwxr-x 18 denghp denghp 4096 6月 27 22:50 ../
-rw-rw-r-- 1 denghp denghp 7478 7月 22 22:56 extensions.php
drwxrwxr-x 27 denghp denghp 4096 6月 23 22:37 yii2/
drwxrwxr-x 2 denghp denghp 4096 6月 23 22:37 yii2-bootstrap/
drwxrwxr-x 2 denghp denghp 4096 6月 23 22:37 yii2-codeception/
drwxrwxr-x 2 denghp denghp 4096 6月 23 22:37 yii2-composer/
drwxrwxr-x 9 denghp denghp 4096 6月 23 22:37 yii2-debug/
drwxrwxr-x 2 denghp denghp 4096 6月 23 22:37 yii2-faker/
drwxrwxr-x 8 denghp denghp 4096 6月 23 22:37 yii2-gii/
drwxr-xr-x 2 denghp denghp 4096 6月 27 22:50 yii2-imagine/
drwxrwxr-x 2 denghp denghp 4096 6月 23 22:37 yii2-swiftmailer/不知道我哪里引用的不对?
扩展再加一下
'yiisoft/Imagine' =>
array ('name' => 'yiisoft/Imagine', 'version' => '5.0.0.0', 'alias' => array ( '@Imagine' => $vendorDir . '/imagine', ),
),
- tuer 评论了教程 yii2-imagine配置
不用改多少代码;把上述文件复制到对应的目录;只需要在vendor/yiisoft/extensions.php增加这2个引入就可以
'yiisoft/yii2-imagine' => array ( 'name' => 'yiisoft/yii2-imagine', 'version' => '2.0.3.0', 'alias' => array ( '@yii/imagine' => $vendorDir . '/yiisoft/yii2-imagine', ), ), 'yiisoft/Imagine' => array ( 'name' => 'yiisoft/Imagine', 'version' => '5.0.0.0', 'alias' => array ( '@Imagine' => $vendorDir . '/imagine', ), ),
- tuer 2015-12-23 已签到连续签到1天,获得了5个金钱
- tuer 收藏了教程Yii 2.0 数据库查询
- tuer 发表了说说下午好 Test
- tuer 2015-09-07 已签到连续签到1天,获得了5个金钱