Hi,
I was wondering if anyone has used regular expressions in CakePHP
routing yet.
In rails one can do something like this:
map.connect 'date/:year/:month/:day', :controller => 'blog', :action =>
'by_date',
:month => nil, :day => nil,
:requirements => {:year => /\d{4}/, :day => /\d{1,2}/,
:month => /\d{1,2}/}
Where you can specify the regular expressions for matching the :year,
:month and :day for a certain route.
I want to have urls like
http://myserver/:year/:month/
but this going to conflict with a route for
http://myserver/:controller/:action/
because there seems to be no way to describe what regular expressions
for :year, : month, :controller and :action should be used for CakePHP
(as a result, you can't always 'match' to the correct route).
Any thoughts on this?
Best regards,
Jeroen Janssen
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---