[Catalyst] Modifying the base url

Krzysztof Krzyżaniak eloy at pawnhearts.eu.org
Fri Dec 15 16:08:04 GMT 2006


"Julien GILLES" <jgilles at glmultimedia.com> writes:

> Hi,
>
> is-it possible to add a default base address to Catalyst urls ?
>
> I have a classical application with /foo, /bar/123 urls, and I want to call
> them
> as http://localhost:3000/baz/foo, http://localhost:3000/baz/bar/123, having all
> Catalyst.uri_for with the complete base part.
>
> I can of course update all controllers, bu I need something configurable (in
> myapp.yml it would be fine).

overload uri_for in lib/MyApplication.pm


  eloy
-- 
-------e-l-o-y----------------------------e-l-o-y- at -k-o-f-e-i-n-a-.-n-e-t------

       jak to dobrze, że są oceany - bez nich byłoby jeszcze smutniej



More information about the Catalyst mailing list