YII2 Pagination Options

  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.

1 0
1 follower
Viewed: 13 521 times
Version: 2.0
Category: Tips
Written by: VivekYii
Last updated by: VivekYii
Created on: Jan 28, 2015
Last updated: 5 years ago
Update Article

Revisions

View all history

Related Articles