PHP code example of branchonline / yii2-joyride

1. Go to this page and download the library: Download branchonline/yii2-joyride 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/ */

    

branchonline / yii2-joyride example snippets


echo Joyride::widget([
          'name' => 'my-joyride',
          'joyride_options' => [
              'tipLocation' => Joyride::POS_TOP,
          ],
          'items' => [
              [
                  'header' => 'my header',
                  'content' => 'my content',
                  'target_id' => 'test',
                  'options' => [
                      'data' => [
                          'options' => 'tipLocation: bottom',
                          'prev-text' => 'Go Back',
                          'button' => 'End'
                      ]
                  ]
              ]
          ],
      ]);