hello,

I have a problem with my custom routes used with pagination.

I have method

<code>
class News {
 ...
function viewall($group_id) {...}
}
</code>

I defined two routes as below with meaning:
1. url .../articles should by default all method News.viewall(1)
2. url .../events should by default all method News.viewall(2)

<code>
Router::connect('/articles/*',array('controller' =>
'news','action'=>'viewall', 'news_set_id'=>1));
Router::connect('/events/*',array('controller' =>
'news','action'=>'viewall', 'news_set_id'=>2));
</code>

And it works fine. But when paginator helper generates urls for
next,prev pages it is using wrong routes. Ex. when list of articles
has more than 2 subpages then link to second subpage has url
    .../events/1/page:2
instead
    .../articles/page:2

I tried to modify routes definition and can't find correct resolution.
I couldn't find it in groups too.

Could anybody help me?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" 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