You are viewing revision #1 of this wiki article.
This is the latest version of this article.
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.
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.