Closed cebe closed 2 weeks ago
LinkPager shows page number starting from 1 and urls generated by Pagination are also 1 based. However the data Html attribute is 0 based:
data
https://github.com/yiisoft/yii2/blob/master/framework/widgets/LinkPager.php#L213
Is there a specific reason for this? Imo this should be adjusted to be constitent.
I don't think there's any reason for it.
Not applicable to Yii3.
LinkPager shows page number starting from 1 and urls generated by Pagination are also 1 based. However the
data
Html attribute is 0 based:https://github.com/yiisoft/yii2/blob/master/framework/widgets/LinkPager.php#L213
Is there a specific reason for this? Imo this should be adjusted to be constitent.