Tuesday, October 28, 2008

setting up a $paginator.

Hi all.

This is my situation.

I have a ready element to display a pagebar (paginator.ctp) who does
make use of $paginator object to display page links, accessing
$paginator->params().

On the other hand, I have a full-custom sql query to gather the rows
to display ("select ... where ... limit ...") and I have to stick with
it. I also have $page, $perpage, $npages scalar information.

My question is: how do I pass that information ($page, $perpage, ...)
to the $paginator object in the controller (?) so that the pagebar is
displayed correctly?

(if you're wondering, yes I've started learning CakePHP only a week
ago, so I'm still a beginner)

Thanks for any tips anyone could give me.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: