CodeIgniter Forums
how to create pagination in codeigniter - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: how to create pagination in codeigniter (/showthread.php?tid=66712)



how to create pagination in codeigniter - Khanh Minh - 11-24-2016

plz, help me config pagination codeigniter 3

i'm new codeigniter, i face issue in pagination codegniter, i want to create pagigation beblow


for example

 previous 12 ...56789... 15 16 next
[Image: 123.png]


RE: how to create pagination in codeigniter - ciadmin - 11-24-2016

CodeIgniter has a pagination library to help with that ... http://www.codeigniter.com/user_guide/libraries/pagination.html


RE: how to create pagination in codeigniter - Khanh Minh - 11-24-2016

follow guide codeigniter i only create pagination below

previous 5 6 7 8 9 10 next

i want to create pagination above image

privious 1 2 ... 5 6 7 8 9 10 ..15 16 next

plz, show me to config
(11-24-2016, 10:18 AM)ciadmin Wrote: CodeIgniter has a pagination library to help with that ... http://www.codeigniter.com/user_guide/libraries/pagination.html



RE: how to create pagination in codeigniter - mike_cc - 12-10-2016

(11-24-2016, 10:43 AM)Actualy I had the same problem, the documentation dosen\t seem complete , you have to pass the page number and the offset to the model. Also , I found out that if you want to use the actual page numebers .. you have to calculate the offset yourself.Is there something that we should know before we read the documentation ? I coudln't find anything about the model structure for the pagination....and dosen't look like is working otherwise.Thanks.Khanh Minh Wrote: follow guide codeigniter i only create pagination below

previous 5 6 7 8 9 10 next

i want to create pagination above image

privious 1 2 ... 5 6 7 8 9 10 ..15 16 next

plz, show me to config
(11-24-2016, 10:18 AM)ciadmin Wrote: CodeIgniter has a pagination library to help with that ... http://www.codeigniter.com/user_guide/libraries/pagination.html