Skip to content

heartshare/yii2-gallery

 
 

Repository files navigation

yii2-gallery

Module manager gallery, upload image

Installation

Add

"sya/yii2-gallery": "dev-master"

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

use sya\gallery\Gallery;
$form->field($model, 'gallery'])->widget(Gallery::className(), [
  'columns' => [
      'status' => [
          'title' => 'Status',
          'displayType' => 'dropdown',
          'items' => [
              '0' => 'Ẩn',
              '1' => 'Hiện'
          ]
      ],
  ]
]),

License

yii2-gallery is released under the MIT License. See the bundled LICENSE.md for details.

About

Module manager gallery, upload image

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 94.1%
  • CSS 5.9%