xinyeweb / yii2-image-upload
yii2-image-upload
Package info
github.com/xinyeweb/yii2-image-upload
Type:yii2-extension
pkg:composer/xinyeweb/yii2-image-upload
dev-master
2017-01-18 01:40 UTC
Requires
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2026-03-16 22:50:18 UTC
README
yii2-image-upload
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist xinyeweb/yii2-image-upload "*"
or add
"xinyeweb/yii2-image-upload": "*"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply use it in your code by :
<?= $form->field($model, 'shop_logo')->widget(\xinyeweb\images\Images::className()) ?>``` ```php public function actions() { return ArrayHelper::merge(parent::actions(), [ 'upload-image' => [ 'class' => 'xinyeweb\images\UploadAction', ], ]); }