Welcome Guest, Not a member yet? Register   Sign In
Using Pagination Library
#5

(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
CMS CI4 A CMS system, runs out of the box written on top of CI4
Arch Book  CodeIgniter4 on Apache(pages 92-114) 
Reply


Messages In This Thread
Using Pagination Library - by cifan - 01-03-2022, 11:07 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



Theme © iAndrew 2016 - Forum software by © MyBB