http://ashleydw.github.io/lightbox/, (*1)
Installation
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require mdq/yii2-widget-ekkolightbox "*"
or add, (*4)
"mdq/yii2-widget-ekkolightbox": "*"
to the require section of your composer.json
file., (*5)
Require Bootstrap 4. You can use:, (*6)
"bower-asset/bootstrap": "~4.0.0@alpha",
"yiisoft/yii2-bootstrap": "2.1.x-dev as 2.0.0",
Usage
Once the extension is installed, simply use it in your code by :, (*7)
```php
use mdq\ekkolightbox\LightBox;
= Lightbox::widget([
'text' => 'text or image thumb',
'url' => ['image or embed video link'],
'settings' => ['js pluggins settings'],
'options' => ['html tag properties']
]); ?>, (*8)