PHP code example of olegbolden / yii2-show-n-pages

1. Go to this page and download the library: Download olegbolden/yii2-show-n-pages 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/ */

    

olegbolden / yii2-show-n-pages example snippets


$dataProvider = new ActiveDataProvider([
    'query' => $query,
    'pagination' => [
        'pageSize' => PageSizeWidget::getPageSize([
            'section'   => 'statistics',
            'pageSizes' => [25, 50, 100],
        ]),
    ],
]);

<?= PageSizeWidget::widget($options); 

'lang' => [
    PageSizeWidget::LANG_SHOW    => 'Показать',
    PageSizeWidget::LANG_ENTRIES => 'записей',
    PageSizeWidget::LANG_ALL     => 'Все',
]

'section' => 'statistics'

'wrapperClass' => 'pull-right',
'innerClass' => 'pageSelector'