L
L
Lev K2017-06-13 16:33:31
Yii
Lev K, 2017-06-13 16:33:31

How to customize pagination in yii2?

Hello.
It is necessary to set the maximum number of pages in pagination, let's say 10, but leave the total number ($dataProvider->totalCount) as it is. How to do it ? Found only a way with cutting results, but I need to issue the total.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2017-06-13
@webinar

It is necessary to set the maximum number of pages in pagination

Maximum for what? On page 1 page? Or even. If at all, then why should the totalCount have a figure different from reality?
Explain why this is, what should happen in the end? Then I will give a reasonable answer how to achieve this. Because there are many options and depend on the final goal.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question