Home  >  Article  >  Backend Development  >  How to control paging in ci to display only 5 page numbers, and use ellipsis when there are too many page numbers

How to control paging in ci to display only 5 page numbers, and use ellipsis when there are too many page numbers

WBOY
WBOYOriginal
2016-09-26 08:40:171647browse

How to control paging in ci to display only 5 page numbers, and use ellipsis when there are too many page numbers

The default seems to have no ellipsis, but hidden
And the returned $page is a string type variable, which the front-end has no way to control. I want to pass the parameters in the background, and then the front-end paging plug-in will process it.

http://www.cnblogs.com/leanhu...

If the background directly returns to paging, the front end will not be able to control the ellipses. If paging is returned in the background, how to set some pages to ellipses.

Reply content:

How to control paging in ci to display only 5 page numbers, and use ellipsis when there are too many page numbers

The default seems to have no ellipsis, but hidden
And the returned $page is a string type variable, which the front-end has no way to control. I want to pass the parameters in the background, and then the front-end paging plug-in will process it.

http://www.cnblogs.com/leanhu...

If the background directly returns to paging, the front end will not be able to control the ellipses. If paging is returned in the background, how to set some pages to ellipses.

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn