[Catalyst] Re: Catalyst 5.50 RC1

Andy Grundman andy at hybridized.org
Mon Oct 10 17:17:25 CEST 2005


Andy Grundman wrote:
>   # Absolute paths
>     $c->req->uri_for( '/foo/bar' ); # http://localhost/base/foo/bar
>   # Relative paths (assuming current page is http://localhost/base/page)
>     $c->req->uri_for( 'subpage'  ); # http://localhost/base/page/subpage
>   # Dot paths
>     $c->req->uri_for( '../page2' ); # http://localhost/base/page2

Oops, that should really read $c->uri_for, not $c->req :)

-Andy



More information about the Catalyst mailing list