Welcome Guest, Not a member yet? Register   Sign In
How to loop pagination links using for loop instead of using foreach loop
#4

Why not just add the key to the foreach like this:
PHP Code:
<?php foreach ($pager->links() as $i => $link) : ?>
CodeIgniter 4 tutorials (EN/FR) - https://includebeer.com
/*** NO support in private message - Use the forum! ***/
Reply


Messages In This Thread
RE: How to loop pagination links using for loop instead of using foreach loop - by includebeer - 06-08-2022, 03:49 PM



Theme © iAndrew 2016 - Forum software by © MyBB