How to loop pagination links using for loop instead of using foreach loop |
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! ***/ |
Welcome Guest, Not a member yet? Register Sign In |