Hey all.

I have a fairly troublesome problem that has really been grating my
goat for the past little while. It has to do with the supplying of
named parameters to a URL, and having them break my pagination. I have
a feeling that the example below might explain this better:

-----------------------

__Route configuration__
Router::connect('/wap/', array('controller' => 'categories', 'action'
=> 'index', 'prefix' => 'wap'));
Router::connect('/wap/:controller/:action/*', array('prefix' => 'wap',
'wap' => true));
[ As far as I can understand, this will map /wap/users/view/4 =>
userscontroller/wap_view/4 ]

-----------------------

__Pagination__
<?php $paginator->options(array('url' => $this->passedArgs))?>
[ This is what I am using to set the pagination URL options. ]

-----------------------

Now, this works fine when I have no named parameters (e.g. URL: /wap/
products/index/22/page:3/). However, as soon as I add in another named
parameter - no matter what the named parameter - the URLs used in the
pagination are broken; they don't seem to use the reverse routing
anymore. This is an example of the kinds of URLs that are generated
once another named parameter is added: /products/wap_index/22/page:3/
images:on.

So, as you can see, it merely takes the user to the controller/action
URL, which is not the way that I would want it.

I'm suspecting that this might actually just be because there is some
silly parameter that I haven't included or something. If there is
anyone that can help me, or at least point in the a decent direction,
I would really appreciate it!

Cheers,
Geoff
--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to