yii2-photo-gallery blueimp gallery in your Yii2 application with fileupload

  1. Requirements
  2. Usage
  3. Installation
  4. Usage

Photo gallery based on blueimp gallery extension with fileupload

The links of this extension

Github: https://github.com/onmotion/yii2-gallery
Packagist: https://packagist.org/onmotion/yii2-gallery

Requirements

Yii 2.0 or above

Usage

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist onmotion/yii2-gallery "*"

or add

"onmotion/yii2-gallery": "*"

to the require section of your composer.json file.

Usage

  • You must add to your config:
    'modules' => [ 
    //... 
    'gallery' => [
            'class' => 'onmotion\gallery\Module',
        ],
        //...
    ]
  • Apply migration, run:
php yii migrate --migrationPath=@vendor/onmotion/yii2-gallery/migrations
  • Go to your application in your browser
http://your-host/gallery

If you want change the view, you can add to your config:

 'components' => [
        //...
        'view' => [
            'theme' => [
                'pathMap' => [
                    '@vendor/onmotion/yii2-gallery/views' => '@app/views/gallery', // example: @app/views/gallery/default/index.php
                ],
            ],
        ],
        //...
    ],

then you need to copy directory 'default' from @vendor/onmotion/yii2-gallery/views to @app/views/gallery and change it as you want.

More samples how it works you can see at blueimp gallery page

0 0
5 followers
0 downloads
Yii Version: 2.0
License: MIT
Category: User Interface
Developed by: onmotion
Created on: Aug 22, 2016
Last updated: 8 years ago

Related Extensions