xinyeweb/yii2-image-upload

yii2-image-upload

Installs: 19

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 3

Forks: 0

Open Issues: 0

Type:yii2-extension

dev-master 2017-01-18 01:40 UTC

This package is auto-updated.

Last update: 2024-03-16 18:26:52 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',
            ],
        ]);
    }