Hi there,

I've switched to latest 1.2 alpha lately and my paginator stoped
outputting proper url's. It happens only when I use custom routes.
Paginator generates url's without sorting parameters..
Instead of

/:controller/page:1/sort:created/direction:asc

I get

/:controller/:action/

It was working fine with 1.2.0.4451alpha..

So I tracked it down and it seems like it losses all the url params in
router.php : __mapRoute($route, $params = array()) ..

as far as I tracked it, it goes like this :

router.php : url()  checks for each route defined if it fits the
controller path which is processing, line 496 :
if ($match = $_this->mapRouteElements($route, $url)) .. before that
$url array has all the sorting params, then there is :
list($output, $url) = $match;

and $match doesn't keep $url params anymore hence all the params are
lost.

Going further through Router::mapRouteElements() and
Router::__mapRoute() it seems obvious that all the params got lost in
the latter. And I'm not really sure what is happening down there.

Does anybody have similar problem ? Is this a bug ?

Best,
Andrzej


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to