![]() |
Add style to pagination - 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: Add style to pagination (/showthread.php?tid=88315) |
Add style to pagination - pippuccio76 - 08-21-2023 HI , i use pagination on my project : Code: <div class="d-flex justify-content-end "> How can i add custom style to pagination ? RE: Add style to pagination - ozornick - 08-21-2023 https://codeigniter4.github.io/userguide/libraries/pagination.html?highlight=pager#customizing-the-links RE: Add style to pagination - InsiteFX - 08-21-2023 If you want custom Pagination styles then you would need to add them to the Pagination Templates. Create your css classes and add them to the templates. RE: Add style to pagination - pippuccio76 - 08-23-2023 (08-21-2023, 08:54 PM)InsiteFX Wrote: If you want custom Pagination styles then you would need to add them to the Pagination Templates. If i want use bootstrap pagination what do i do ? RE: Add style to pagination - ozornick - 08-23-2023 Pls, read docs. if you don't understand it in the manual, I do not know how to explain it in more detail. Writing code for you is too good... RE: Add style to pagination - pippuccio76 - 08-23-2023 (08-23-2023, 07:49 AM)ozornick Wrote: Pls, read docs. if you don't understand it in the manual, I do not know how to explain it in more detail. hi , i found this example: https://forum.codeigniter.com/thread-77274.html This is my code : bootstrap_full.php: Code: <div class="d-flex justify-content-end "> bootstrap_simple.php: Code: <?php Controller: Code: $lista=$viaggi_model->where('id_users',session()->get('user_id')) in view: Code: <div class="d-flex justify-content-end "> But this is the result: https://imgur.com/ONHrzNY.png If i use bootstrap_simple it seem ok : https://imgur.com/aRS5veH.png It seem on bootstrap full that there aren't $pager->hasNext() and $pager->hasPrevious() What's wrong ? RE: Add style to pagination - InsiteFX - 08-24-2023 Did you save the Pagination templates in the correct folder? App/Views/Pager/templates.php Add the Pager paths to App/Config/Pager.php RE: Add style to pagination - pippuccio76 - 08-24-2023 Yes , i see the style but not the previous and next button... It seem on bootstrap full that there aren't $pager->hasNext() and $pager->hasPrevious() |