Hi there,
I'm having some trouble with the links in the paginator. I've read the
docs and searched on the mailing list, but can't find the exact
combination.
I'd like a structure like this:
/noticias
/noticias/page:x
/noticias/id
First link brings all the news. Second link brings the pagination of
all the news. Last link, though, should be the view of a specific
pieces of news.
I have these routes defined (please note that the url is not the same
as the name of the controller):
Router::connect('/noticias', array('controller' => 'news', 'action' =>
'index'));
Router::connect('/noticias/*', array('controller' => 'news', 'action'
=> 'view'));
But this generates links like this:
/news/index/page:x
I've tried 1000 combinations between the Router and the paginator but
to no avail.
Any help much appreciated!
Juan
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---