loop through the pageCount paramater and output the links <?php for ( $page = 1; $page <= $paginator->params['paging'] [$paginator->__defaultModel]['pageCount']; $page++): ?> <?php if ($page != $paginator->current() ): ?> <li><?php echo $html->link($page, '/admin/'.$paginator- >params['controller'].'/index/page:'.$page) ?></li> <?php else: ?> <li><strong><?php echo $page ?></strong></li> <?php endif; ?> <?php endfor; ?>
On Feb 23, 1:23 pm, "Jon M." <[EMAIL PROTECTED]> wrote: > Nobody can help me out :( ? > > I tried doing a search but couldn't find anything on it. Please :) > > On Feb 22, 3:11 pm, "Jon M." <[EMAIL PROTECTED]> wrote: > > > I am curious if anyone can show me how to add selectable page numbers > > along side the "prev" and "next" links. Having 50 pages and having to > > click next 50 times to get to the last page is not fun :) so if > > someone can help me out with that ... I would be very thankful :D ! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---