2017 © Pedro Peláez
 

yii2-extension yii2-gallery

Module manager gallery, upload gallery

image

sya/yii2-gallery

Module manager gallery, upload gallery

  • Monday, May 15, 2017
  • by sya0710
  • Repository
  • 1 Watchers
  • 0 Stars
  • 80 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

yii2-gallery

Module manager gallery, upload image, (*1)

Installation

Add, (*2)

"sya/yii2-gallery": "~1.0"

to the require section of your composer.json file., (*3)

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., (*4)

The Versions

15/05 2017

dev-master

9999999-dev

Module manager gallery, upload gallery

  Sources   Download

MIT

The Requires

 

by phongnv

extension yii2 gallery

11/05 2017

1.0

1.0.0.0

Module manager gallery, upload gallery

  Sources   Download

MIT

The Requires

 

by phongnv

extension yii2 gallery