The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist webvimark/module-slider "*"
or add
"webvimark/module-slider": "*"
to the require section of your composer.json
file.
In your config/web.php
'modules'=>[
...
'slider' => [
'class' => 'webvimark\webvimark\modules\slider\SliderModule',
],
...
],
1 Go to http://site.com/slider/slider/index 2 Create slider with some "code" (for example "code" = "main" 3 Go to http://site.com/slider/slider-image/index?slider=main 4 Add images
and finally use widget
<?= SliderWidget::widget([
'code'=>'main',
'pluginOptions'=>[
'auto'=>true,
'pause'=>5000,
],
]) ?>
No stable releases.
Comments