I have router:
//category single
Router::connect('/categories/:slug/*,
    array('controller'=>'categories', 'action'=>'view'),
    array('pass'=>array('slug'), 'slug'=>'[0-9a-z-]+'));
//categories list
Router::connect('/categories/*', array('controller'=>'categories',
'action'=>'index'));

I want to have a list of categories (url mysite.com/categories/)
and a list of articles of each category (url mysite.com/categories/
<category-slug>)
also I want pagination if there are too many articles (url mysite.com/
categories/<category-slug>/page:<page_num>)

$paginator->numbers(array('url' => array('slug'=>$slug)));

but paginators returns links like mysite.com/categories/<category-slug-
from-pass>/<category-slug-from-paginator>/page:<page_number>

What's wrong?

I removed value 'pass' from router but don't like that solution.
Is there somthing else I can do?

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