CodeIgniter Forums
Pagination on API returned data set - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: Pagination on API returned data set (/showthread.php?tid=76205)



Pagination on API returned data set - BilltheCat - 04-21-2020

After fighting with this off and on all day.... do I understand correctly that the pagination class can ONLY be used on native database records?  I'm retrieving a json encoded string from an API request, and it includes page numbers and record total.  Outside of CodeIgniter, I can easily paginate through the records, but trying to pass these values through model->pager doesn't seem to work:

Quote:Call to a member function makeLinks() on null