Bootstrap Tour widget for Yii2
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist macrowish/yii2-bootstrap-tour "dev-master"
or add
"macrowish/yii2-bootstrap-tour": "dev-master"
to the require section of your composer.json
file.
Once the extension is installed, simply use it in your code by :
<?php
$steps[0] = [
'title'=>'Step 1',
'content'=>'Content and stuff',
'element'=>'#some-element'
];
// $steps[1] = ... etc
\macrowish\widgets\BootstrapTour::widget([
'steps'=>$steps,
'options'=>[
'backdrop'=>'true'
]
]); ?>