sya / yii2-gallery
Module manager gallery, upload gallery
Installs: 82
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
Type:yii2-extension
Requires
- php: >=5.4.0
- bower-asset/dropzone: *
- kartik-v/yii2-date-range: *
- letyii/yii2-imagecache: *
- yiisoft/yii2: *
- yiisoft/yii2-bootstrap: *
This package is not auto-updated.
Last update: 2024-11-03 08:20:54 UTC
README
Module manager gallery, upload image
Installation
Add
"sya/yii2-gallery": "~1.0"
to the require section of your composer.json file.
Module
use sya\gallery\Module; 'modules' => [ 'gallery' => [ 'class' => 'sya\gallery\Module', 'syaDirPath' => '@webroot/', 'syaDirUrl' => '@web/', 'syaDirUpload' => 'uploads', ], ]
Demo
Gallery
use sya\gallery\models\Gallery; $form->field($model, 'gallery'])->widget(Gallery::className(), [ 'columns' => [ 'status' => [ 'title' => 'Status', 'displayType' => Gallery::SYA_TYPE_COLUMN_DROPDOWN, 'items' => [ '0' => 'Ẩn', '1' => 'Hiện' ] ], ] ]),
Single Image
use sya\gallery\Image; $form->field($model, 'image', ['horizontalCssClasses' => []])->widget(Image::className(), [ 'class_button' => 'form-control button_color ', ])
License
yii2-gallery is released under the MIT License. See the bundled LICENSE.md for details.