PHP code example of i4erkasov / yii2-link-pager-with-dots

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

    

i4erkasov / yii2-link-pager-with-dots example snippets


{{ use('i4erkasov/LinkPagerWithDots/widget/linkPagerWithDots') }}
{{ linkPagerWithDots_widget({
    'pagination': dataProvider.pagination,
    'activePageCssClass': 'active',
    'disableCurrentPageButton': true,
    'prevPageCssClass': 'arrow--prev',
    'nextPageCssClass': 'arrow--next',
    'dotsClass': 'page--dots',
    'options':{
        'class': 'paging--list'
    },
    'linkContainerOptions':{
        'class': 'paging--page'
    },
    'linkOptions': {
        'class': 'paging--link'
    },
    'linkPrevNext': {
        'class': 'paging--arrow'
    }
}) | raw }}