alexeevdv/yii2-single-image-upload


License
MIT

Documentation

Installation

The preferred way to install this extension is through composer.

Either run

$ composer require alexeevdv/yii2-single-image-upload "^1.0"

or add

"alexeevdv/yii2-single-image-upload": "^1.0"

to the require section of your composer.json file.

Usage

echo $form->field($model, 'image')->widget(alexeevdv\image\SingleImageUploadWidget::class);