Pagination for RESTController - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Feature Requests (https://forum.codeigniter.com/forumdisplay.php?fid=29) +--- Thread: Pagination for RESTController (/showthread.php?tid=90407) |
Pagination for RESTController - renevdkooi - 03-13-2024 Seeing there is extensive support for CodeIgniter\RESTful\ResourceController and using models with pagination is the preferred way to go. It seems a logical choice to add an option in the Pager class to return an array, which can be added to the output for a RESTful response. Something along the lines of: Code: /** |