YII2 Pagination Options

You are viewing revision #1 of this wiki article.
This is the latest version of this article.

  1. Worry about pagination option...
  2. step1
  3. step2 :

Worry about pagination option...

solution here If we are using default pagination option like

<< 1 2 3 4 5 6 >>

but if u want to customize you need to put in your view page

step1

use yii\helpers\Html;
use yii\widgets\LinkPager;

step2 :

<?= LinkPager::widget(['pagination' => $pagination,'lastPageLabel'=>'LAST','firstPageLabel'=>'FIRST',
    'prevPageLabel' => 'Prev',
    'nextPageLabel' => 'Next',
        
    ]) ?>

I hope this will help to you in your yii2 projects.