[SOLVED] CI4 Pagination don't work fine |
Hi to all,
i use CI 4.0.3 and I read CI4 documentation : https://codeigniter.com/user_guide/libra...ation.html This is my controller: PHP Code: <?php namespace App\Controllers; This is my model : PHP Code: <?php namespace App\Models; In my php Page I wrote this: PHP Code: <?= $pager->links()?> BUT, in my web page I watch only an "1" (I attached an image); this is the HTML rendered by previous code: PHP Code: ... In my database I have 12 records and if I play with pagination's params I see different records. Where I am wrong? ![]() ![]() Many thanks for your help! Rodrigo
I solved with this code:
Controller: PHP Code: <?php namespace App\Controllers; Page : PHP Code: <?= $pager->makeLinks($currPage, $recordsForPage, $countAll) ?>
Thanks! This line did it for me <?= $pager->makeLinks($currPage, $recordsForPage, $countAll) ?>!
You can see things I made with codeigniter here: itart.pro its not overly impressive as I have very little time to learn.
|
Welcome Guest, Not a member yet? Register Sign In |