X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst.pm;h=98864eef6d831992f2d5737baf0919eb76b48651;hp=7cc6ad21538e53f969ddc6e6cf8afb785f4faf25;hb=c9ec25f80489f039512982f9e02527d537412f6e;hpb=45b607abc3b02628b2e1b830fe325256dbec04ae diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index 7cc6ad2..98864ee 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -1329,6 +1329,20 @@ $c->uri_for >>. You can also pass in a Catalyst::Action object, in which case it is passed to C<< $c->uri_for >>. +Note that although the path looks like a URI that dispatches to the wanted action, it is not a URI, but an internal path to that action. + +For example, if the action looks like: + + package MyApp::Controller::Users; + + sub lst : Path('the-list') {} + +You can use: + + $c->uri_for_action('/users/lst') + +and it will create the URI /users/the-list. + =back =cut @@ -2944,6 +2958,8 @@ numa: Dan Sully obra: Jesse Vincent +Octavian Rasnita + omega: Andreas Marienborg Oleg Kostyuk