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
Requires
- yiisoft/yii2: *
This package is auto-updated.
Last update: 2025-01-16 20:18:30 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', ], ]); }