PHP code example of mgilangjanuar / yii2-spfjs

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

    

mgilangjanuar / yii2-spfjs example snippets


\mgilangjanuar\yii2spf\PaceWidget::widget([
    'color'=>'red',
    'theme'=>'minimal',
    'options'=>[
        'ajax'=>['trackMethods'=>['GET','POST','AJAX']]
    ]
]);
 $this->head() 

<!-- STYLES CONTENT -->
 $this->head() 
 $this->endBody() 

<!-- SCRIPTS CONTENT -->
 $this->endBody() 

<div id="main-content" class="container">
<!-- MAIN CONTENT -->
<?= Breadcrumbs::widget([
    'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [],
])