Hi, maybe this can help, but i'm not sure if it's the right way.
Router::connect('/artikel/:action/:page/*', array('controller' =>
'article', 'action' => 'index'));
On May 31, 8:37 am, BenjaminB <[EMAIL PROTECTED]> wrote:
> Hi,
> its YARQ, so i try to keep it short.
> the paginator gives me links like this:
>
> /articles/index/page:8
>
> i have a route for the articles like this:
>
> $Route->connect( 'Artikel/', array( 'controller' => 'articles',
> 'action' => 'index' ) );
>
> this route works if someone requests "/Artikel/", but not if one tries
> to reach "/Artikel/page:5"
>
> if i change my route from "/Artikel/" to "/Artikel/*", im able to call
> "/Artikel/page:4" manually, but the
> paginator (which uses htmlhelper->link() which itself uses
> Route::url()) generates "/Artikel/" for every page url, completely
> omitting the page part. i dont have any clue, what the proper route
> could be, but what im trying to achieve is like this:
>
> /Artikel/ -> /articles/index
> /Artikel/Seite:8 -> /articles/index/page:8 (or even better /Artikel/
> Seite/8
> /Artikel/Zeige/* -> /articles/show/*
>
> so what could be the proper routes for that (i have the first and the
> last acutally working, but no chance to get the other one to work).
>
> thx in advance
> regards Benjamin
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---