X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst.pm;h=06130d1a48fb886e6a02d4f13f3ccac9152edd0c;hp=737ccc4622f1004186afdab07307988e9401e078;hb=d5c1270360c155009fa138b6f0630044304f3c86;hpb=22a5833d436649391dc95877ca33f549308c6c3c diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index 737ccc4..06130d1 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -79,7 +79,7 @@ __PACKAGE__->stats_class('Catalyst::Stats'); # Remember to update this in Catalyst::Runtime as well! -our $VERSION = '5.80016'; +our $VERSION = '5.80018'; $VERSION = eval $VERSION; sub import { @@ -1330,6 +1330,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 @@ -2889,6 +2903,8 @@ numa: Dan Sully obra: Jesse Vincent +Octavian Rasnita + omega: Andreas Marienborg Oleg Kostyuk