PHP code example of keygenqt / yii2-link-pager-points

1. Go to this page and download the library: Download keygenqt/yii2-link-pager-points 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/ */

    

keygenqt / yii2-link-pager-points example snippets


<?=
    ListView::widget([
        'dataProvider' => $model->search(Yii::$app->request->getQueryParams()),
        'itemView' => 'block/item',
        'layout' => "{items}{pager}",
        'options' => [
            'tag' => 'ul',
            'class' => 'list'
        ],
        'itemOptions' => [
            'tag' => 'li',
        ],
        'pager' => [
            'class' => 'keygenqt\linkPager\LinkPager',
            'maxButtonCount' => 5
        ],
    ]);