PHP code example of matejch / yii2-page-guide

1. Go to this page and download the library: Download matejch/yii2-page-guide library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

matejch / yii2-page-guide example snippets

 
./yii migrate --migrationPath=@vendor/matejch/yii2-page-guide/src/migrations
 
'pageGuide' => [
    'class' => \matejch\pageGuide\PageGuide::class,
]


 <?= \matejch\pageGuide\widget\PageAssist::widget() 
 
<?= \matejch\pageGuide\widget\PageAssist::widget(['btnPositionCss' => 'position: fixed;top: 100px;right: -2px;']) 
 
<?= \matejch\pageGuide\widget\PageAssist::widget(['introOptions' => ['showProgress' => true] ]) 
 
<?= \matejch\pageGuide\widget\PageAssist::widget(['introCallbacks' => [
    'onchange' => new \yii\web\JsExpression("function (targetElement) { alert('next step'); }")]
]) 
 
{key_of_module_you_use_in_web.php}/page-guide/index
 
<?= \matejch\pageGuide\widget\PageAssist::widget(['selectors' => ['.guide','#selectable_id']]) 

php composer.phar