[Catalyst] getting the uri of any current action
John Napiorkowski
jjn1056 at yahoo.com
Fri Oct 6 01:10:59 CEST 2006
Hi,
Does this look right? I want to get the uri for any
current action whether its a :Local, :Path, has args
or not or is the endpoint in a chain with an arbitrary
number of args.
my $link = $c->uri_for( $c->action,
@{$c->request->arguments} )
|| $c->uri_for( $c->action, $c->request->captures );
Seems right from my testing but still a little fuzzy
on dealing with chained endpoints.
Thanks!
John
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
More information about the Catalyst
mailing list