dev-master
9999999-devyii2-image-upload
BSD-3-Clause
The Requires
by hoter
extension yii2 yii2-image-upload
Wallogit.com
2017 © Pedro Peláez
yii2-image-upload
yii2-image-upload, (*1)
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist xinyeweb/yii2-image-upload "*"
or add, (*4)
"xinyeweb/yii2-image-upload": "*"
to the require section of your composer.json file., (*5)
Once the extension is installed, simply use it in your code by :, (*6)
<?= $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',
],
]);
}
yii2-image-upload
BSD-3-Clause
extension yii2 yii2-image-upload