Re: Advanced routing and controller redirecting

2008-05-21 Thread Travis
Thanks, I'll give that a try! On May 21, 12:03 am, "Jonathan Snook" <[EMAIL PROTECTED]> wrote: > On Wed, May 21, 2008 at 12:49 AM, Travis <[EMAIL PROTECTED]> wrote: > > > Yes, I would like to display the data differently depending on the > > attributes passed in. > > Then set up three different r

Re: Advanced routing and controller redirecting

2008-05-20 Thread Jonathan Snook
On Wed, May 21, 2008 at 12:49 AM, Travis <[EMAIL PROTECTED]> wrote: > > Yes, I would like to display the data differently depending on the > attributes passed in. Then set up three different routes for it, each pointing to its own action Router::connect('/:controller/:year/:month/:day', array('a

Re: Advanced routing and controller redirecting

2008-05-20 Thread Travis
Yes, I would like to display the data differently depending on the attributes passed in. On May 20, 6:16 pm, "Jonathan Snook" <[EMAIL PROTECTED]> wrote: > On Tue, May 20, 2008 at 7:07 PM, Travis <[EMAIL PROTECTED]> wrote: > > > I am trying to create a controller that acts similar to that of which

Re: Advanced routing and controller redirecting

2008-05-20 Thread Jonathan Snook
On Tue, May 20, 2008 at 7:07 PM, Travis <[EMAIL PROTECTED]> wrote: > > I am trying to create a controller that acts similar to that of which > you find commonly on blogs. I want the user to be able to type > http://www.example.com/2008/05/20/, http://www.example.com/2008/05/, > and http://www.exa

Re: Advanced routing and controller redirecting

2008-05-20 Thread 3lancer.eu
Hi, > How do I make it such that each different variation of the date gets > redirected to the appropriate view? Thanks! I'd personally go for 3 simple regexps, 1 for year, 1 for year/month, 1 for year/month/date... Piotr --~--~-~--~~~---~--~~ You received this

Advanced routing and controller redirecting

2008-05-20 Thread Travis
I am trying to create a controller that acts similar to that of which you find commonly on blogs. I want the user to be able to type http://www.example.com/2008/05/20/, http://www.example.com/2008/05/, and http://www.example.com/2008/ to be directed to an archive for the current day, month, and y