Using Pagination Library |
01-05-2022, 05:29 AM
(This post was last modified: 01-05-2022, 05:36 AM by captain-sensible. Edit Reason: just remembered something )
yeah you can write your own pagination code I did it on another framework called fat free . The basics are get results, do a count on results , split number of results into arbitrary amount ; i remember i used ceil() function of php so as to get whole numbers and modulo ; i borked by old external hard drive where the code was otherwise i would just paste it for you
I think i also used urls like domain.com/page/$number then using that variable $number to get the right segment of the posts and i think i also used the total amount of results, divided by arbitrary number to know the number of view link pages to generate . if i can remember more i will post it |
Messages In This Thread |
Using Pagination Library - by cifan - 01-03-2022, 11:07 AM
RE: Using Pagination Library - by captain-sensible - 01-04-2022, 08:19 AM
RE: Using Pagination Library - by cifan - 01-04-2022, 12:35 PM
RE: Using Pagination Library - by iRedds - 01-04-2022, 05:29 PM
RE: Using Pagination Library - by captain-sensible - 01-05-2022, 05:29 AM
RE: Using Pagination Library - by BilltheCat - 01-05-2022, 12:41 PM
|