$Route->connect('/', array('controller' => 'main');
//you'll need to specify controllers that don't fit into the ArtistName
construct
$Route->connect('/admin/', array('controller' = 'admin');
$Route->connect('/:artistname/:controller/:action/:id',
array('controller' => 'artists'));
I think the whole point is simply that I dont understand the
Route->connect - Syntax. In the manual they say
"URL is the regular expression Cake URL you wish to map"
but "/blog/*" and ":something" isnt a regex.
what does the ":" mean?
can i use the "?" in the urls?
2. why shouldnt we/i use mod_rewrite?
3. when i have to "hard-code/-route" each action, isnt it better the
other way around. route /controller/action as default and catch the
"not-found"-error: when an action/method is not present in the
controller call a default method that looks if the given param is an
ArtistName or AlbumName or something like that. when everything fails
throw a 404.
4. what do you think when i would
simply rewrite/-route (silently)
/domain.com/ArtistName/comment/add/
to
/domain.com/comment/add/ArtistName/
the difference between
/domain.com/comment/add/XXX/
and
/domain.com/comment/add/YYY/
could then be: use a diffenrent view or a different layout-file.
greetings
thdz.x
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---