On Dec 13, 4:30 am, thankyou <[email protected]> wrote:
> Hello,
>
> I'm a little confused with My Paginator....please forgive me as i'm a
> basic learner :)
>
> I'm currently showing links to pages 1 2 3 4 5 on the bottom of my
> website:
> Here is part of the code: <div class='awlPager'><b>1</b> <a href="/
> mypage/index/page:2">2</a> etc etc....<a href="/mypage/index/page:
> 5">5</a>
>
> What I want it to do....I want it to show pages upto page 10 (it only
> goes to page 5) <-- I'm stuck, any ideas?
>
> I found the frontendpaginator function (below) which appears to help
> with this:
> function frontendPaginator($option = array())
> {
> $current = "";
>
> if($this->numbers($option))
> {
> $current = $this->frontendNumbers($option);
> }
>
> $result = "";
> $result .=
> "<div class='awlPager'>".$current ."</div>";
> return $result;
> }
Are you using CakePHP? If so the core paginate functionality doesn't
work like that.
http://book.cakephp.org/revisions/results/query:paginate/collection:2/lang:en
AD
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---