You don't need to set the $helpers = array('Paginator'), it gets pulled
in when $this->paginate() is used.
In my view, I use echo $paginator->prev('Previous', null, null,
array('class' => 'disabled')); for the prev & next links.
Does this help? There's also this from nate that might help.
http://cake.insertdesignhere.com/posts/view/16
D
On Jan 23, 11:01 am, "Jonathon Davis" <[EMAIL PROTECTED]> wrote:
> I am having problems getting pagination working correctly for me in
> 1.2.0.4206
>
> I have $helpers = array('Paginator') in my controller.
>
> I set the value for the view with $this->set('graphics',
> $this->paginate());
>
> In the view I have this to display the Prev and Next controls for the
> user: <?php echo $this->prev().' '.$this->next(); ?>
>
> It correctly displays the default page, and page 2 when the Next link
> is clicked, but after you've clicked one link, the Next and Prev links
> are messed up. They show up like
> this:http://localhost/cake/admin/graphics/index/page:3page:3which is
> obviously not correct, and it always just shows the 1st page if a link
> like that (with the page in there twice). Any way to fix this? Should I
> grab a nightly build to see if it's fixed there? or what?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" 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
-~----------~----~----~----~------~----~------~--~---