CodeIgniter Forums
Pagination on API returned data set - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forum-28.html)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forum-30.html)
+--- Thread: Pagination on API returned data set (/thread-76205.html)



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