On Jun 12, 1:07 am, gerbenzomp <[EMAIL PROTECTED]> wrote:
> I use AD7six's pagination helper/component, and it works great! But
> right now I'm changing the default routes, so the user's sitename
> comes before every controller->action.
>
> Like this:
> $Route->connect("/:sitename/posts/edit/*", array("controller" =>
> "posts", "action" => "edit"));
>
> This works fine for most controllers/actions, but I can't seem to
> "resurrect" the pagination part in this new setup.
>
> Right now I have the routing for the pagination like this:
> $Route->connect("/:sitename/Posts/index/page/*", array("controller" =>
> "posts", "action" => "index"));
>
> But this way, I get the first "posts" page on every pagination link I
> click. How can I make sure the pagination works again?
Hi Gerbenzomp,
I don't really understand. The 1.1 pagination code is unaffected by
route changes, since it doesn't use or refer to them. I can only
suggest looking at/debugging the _generateUrl method in the helper
(and from that you will see that how it manually builds each link by
concatenating the current url and whatever parameters have been
determined as necessary).
Unless you meant that you are using 1.2 paginator stuff, inwhich case:
more details please.
hth,
AD
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---