【文件属性】:
文件名称:yii2-image-style-behavior:Yii2 Images样式行为
文件大小:5KB
文件格式:ZIP
更新时间:2021-05-13 17:41:13
PHP
图像样式为Yii 2生成行为
为图像创建样式集
安装
安装此扩展的首选方法是通过 。
无论运行
$ composer require artkost/yii2-image-style-behavior
或添加
"artkost/yii2-image-style-behavior": "*"
到composer.json文件的require部分。
配置中
如下配置模型
use artkost\imagestyle\ ImageStyleBehavior ;
class ImageFile extends \yii\db\ ActiveRecord
{
public function behaviors ()
{
return [
'styles' => [
'class' => ImageStyl
【文件预览】:
yii2-image-style-behavior-master
----.gitignore(34B)
----src()
--------ImageStyleBehavior.php(3KB)
--------ImageStyle.php(2KB)
----LICENSE(1KB)
----composer.json(674B)
----README.md(1KB)