Re: [Catalyst] Multiple path for the same action

2010-02-18 Thread Julien Sobrier
Thank you for pointing me to the right direction. It looks like I could associates a new path with existing actions by accessing $c->dispatcher Julien On Wed, Feb 17, 2010 at 10:47 PM, Eden Cardim wrote: > >Julien> I want to let users decide how to name their URL. For >Julien> example

Re: [Catalyst] Multiple path for the same action

2010-02-17 Thread Eden Cardim
Julien> I want to let users decide how to name their URL. For Julien> example, by default, the url looks like this: /home/Julien Julien> But people can decide to change /home with anything they Julien> want through an administration panel: /name/Julien Julien> /first-name/Jul

Re: [Catalyst] Multiple path for the same action

2010-02-17 Thread Julien Sobrier
I want to let users decide how to name their URL. For example, by default, the url looks like this: /home/Julien But people can decide to change /home with anything they want through an administration panel: /name/Julien /first-name/Julien /my-website/Julien etc. Thank you Julien On Wed, Feb 1

Re: [Catalyst] Multiple path for the same action

2010-02-17 Thread J. Shirley
On Wed, Feb 17, 2010 at 5:34 PM, Julien Sobrier wrote: > Thank you > > But I cannot create these aliases at run-time, right? They're not aliases, they're methods and dispatchable actions. How about explaining what you are trying to achieve :) -J ___

Re: [Catalyst] Multiple path for the same action

2010-02-17 Thread Julien Sobrier
Thank you But I cannot create these aliases at run-time, right? Julien On Wed, Feb 17, 2010 at 4:56 PM, J. Shirley wrote: > On Wed, Feb 17, 2010 at 4:18 PM, Julien Sobrier > wrote: > > Hello, > > I'd like to assign multiple pass, at run-time, to the same action. For > > example: > > > > packa

Re: [Catalyst] Multiple path for the same action

2010-02-17 Thread J. Shirley
On Wed, Feb 17, 2010 at 4:18 PM, Julien Sobrier wrote: > Hello, > I'd like to assign multiple pass, at run-time, to the same action. For > example: > > package MyApp::Controller::Foo; > > sub foo :Path {...} > > Then, have /foo, /bar, /other associated with MyApp::Controller::Foo->foo > > One way

[Catalyst] Multiple path for the same action

2010-02-17 Thread Julien Sobrier
Hello, I'd like to assign multiple pass, at run-time, to the same action. For example: package MyApp::Controller::Foo; sub foo :Path {...} Then, have /foo, /bar, /other associated with MyApp::Controller::Foo->foo One way to do it woould be to catch /bar and /other in the "default" action, and f