webvimark/module-slider

There is no license information available for the latest version (dev-master) of this package.

Slider :)

dev-master 2014-10-13 20:01 UTC

This package is auto-updated.

Last update: 2024-04-29 03:07:42 UTC


README

Installation

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.

Configuration

In your config/web.php

	'modules'=>[
		...

		'slider' => [
			'class' => 'webvimark\webvimark\modules\slider\SliderModule',
		],

		...
	],

Usage

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,
	],
]) ?>