Pagination using ajax in codeigniter 4 |
06-08-2021, 10:58 AM
(This post was last modified: 06-08-2021, 07:29 PM by coderscvoen. Edit Reason: adding additional information ) (06-08-2021, 01:05 AM)InsiteFX Wrote: You can do it, it has methods for getting that data see the below blog method $data Thanks for this; especially the getCurrentPage() and getPageCount(). I also looked up the Pager.php class and found the getTotal() which displays the total of all records. I noticed that when i click on paginate link for example, to go from page 1 to page 2, values which were on page 1 are lost. How do i maintain those values? I was thinking of using session or something like that. |
Messages In This Thread |
Pagination using ajax in codeigniter 4 - by coderscvoen - 06-06-2021, 12:47 PM
RE: Pagination using ajax in codeigniter 4 - by InsiteFX - 06-06-2021, 08:54 PM
RE: Pagination using ajax in codeigniter 4 - by coderscvoen - 06-07-2021, 12:37 AM
RE: Pagination using ajax in codeigniter 4 - by InsiteFX - 06-07-2021, 08:57 PM
RE: Pagination using ajax in codeigniter 4 - by coderscvoen - 06-07-2021, 10:03 PM
RE: Pagination using ajax in codeigniter 4 - by InsiteFX - 06-08-2021, 01:05 AM
RE: Pagination using ajax in codeigniter 4 - by coderscvoen - 06-08-2021, 10:58 AM
RE: Pagination using ajax in codeigniter 4 - by InsiteFX - 06-08-2021, 08:53 PM
RE: Pagination using ajax in codeigniter 4 - by coderscvoen - 06-08-2021, 09:34 PM
|