Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Catalyst: Users

Changing path seperator?

 

 

Catalyst users RSS feed   Index | Next | Previous | View Threaded


neo at gothic-chat

Jun 22, 2009, 5:25 AM

Post #1 of 2 (383 views)
Permalink
Changing path seperator?

Hi!

Is it possible to change the path seperator or to define an optional new
seperator and if yes, how?

Example:
Instead of
/foo/bar/something?param=value
for
MyApp::Controller::Foo::Bar
I'd like to use
/foo.bar.something?param=value

Thanks in advance and regards,
Tom Weber

_______________________________________________
List: Catalyst[at]lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst[at]lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/


ash_cpan at firemirror

Jun 22, 2009, 10:56 AM

Post #2 of 2 (333 views)
Permalink
Re: Changing path seperator? [In reply to]

On 22 Jun 2009, at 13:25, Neo [GC] wrote:

> Hi!
>
> Is it possible to change the path seperator or to define an optional
> new seperator and if yes, how?
>
> Example:
> Instead of
> /foo/bar/something?param=value
> for
> MyApp::Controller::Foo::Bar
> I'd like to use
> /foo.bar.something?param=value
>
> Thanks in advance and regards,
> Tom Weber

Sounds like you want a custom prepare path sub, and if you use it a
custom uri_for. Check the docs for the sigs: you can just define these
methods in your MyApp.pm.

-ash

_______________________________________________
List: Catalyst[at]lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst[at]lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

Catalyst users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.