![]() |
How to return count from findAll() function? - 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: How to return count from findAll() function? (/showthread.php?tid=80959) |
How to return count from findAll() function? - mylastof - 01-07-2022 I'm using findAll($limit, $offset) for pagination, besides that I also want to display the count of all of them without $limit, is there any special function? whereas read https://codeigniter.com/user_guide/database/query_builder.html#limiting-or-counting-results only for $builder RE: How to return count from findAll() function? - kenjis - 01-07-2022 countAllResults(false) in Model. |