hi folks,

I'd like to have the following urls:

/articles
/articles/$category_slug
/articles/$year
/articles/$year/$month
/articles/$year/$month/$day
/articles/$year/$month/$day/$article_slug

I've been looking at routes but hit a mental block, most likely due to
a lack of regex experience. Should I:

a) follow cake's pages->display method and do a switch on the number
of args (with some type checking)
b) use cake's routes to redirect a single call to 3 different methods
(index, category, view)
c) use cake's routes to do regex and pass the correct value in params
to a single method

I think C is the answer, but I need a bit of help getting there!

Thanks,

Jon

-- 

jon bennett
w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett

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

Reply via email to