globaloxs/yii2-lightbox2

Lightbox widget for Yii2

Installs: 24

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 3

Forks: 14

Type:yii2-extension

1.0 2015-05-14 08:02 UTC

This package is not auto-updated.

Last update: 2024-11-13 10:47:04 UTC


README

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist branchonline/yii2-lightbox "*"

or add

"branchonline/yii2-lightbox": "*"

to the require section of your composer.json.

Usage

Once the extension is installed, simply add widget to your page as follows:

echo Lightbox::widget([
    'files' => [
        [
            'thumb' => 'url/to/thumb.ext',
            'original' => 'url/to/original.ext',
            'title' => 'optional title',
        ],
    ]
]);