dev-master
9999999-devYii2 gallery module
The Requires
- php >=5.4.0
- yiisoft/yii2 *
- kartik-v/yii2-widgets *
- kartik-v/yii2-grid *
- sadovojav/yii2-inline-widgets-behavior dev-master
yii2 module gallery
Yii2 gallery module
, (*1)
The preferred way to install this extension is through Composer., (*2)
Either run php composer.phar require sadovojav/yii2-gallery-module "dev-master"
, (*3)
or add "sadovojav/yii2-gallery-module": "dev-master"
to the require section of your composer.json
, (*4)
yii migrate --migrationPath=@vendor/sadovojav/yii2-gallery-module/migrations, (*5)
'modules' => [ 'gallery' => [ 'class' => 'sadovojav\gallery\Module', ], ],
basePath
= @webroot/galleries
- Base pathqueryCacheDuration
= 86400
- Query cache durationuniqueName
= false
- Generate unique name'view' => [ 'theme' => [ 'pathMap' => [ '@sadovojav/gallery/widgets/views' => '@app/web/views/gallery' ], 'baseUrl' => '@web/web' ], ],
Galleries manager - /gallery/gallery/index, (*6)
<?= \sadovojav\gallery\widgets\Gallery::widget([ 'galleryId' => $model->galleryId ]); ?>
galleryId
required - Gallery Idcaption
= false
- Show caption in default templatetemplate
= null
- Your custom widget templateSee here -> https://github.com/sadovojav/yii2-inline-widgets-behavior, (*7)
Yii2 gallery module
yii2 module gallery