[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Omaha.pm] Catalyst::Runtime POD
Got another patch applied to Catalyst today.
Now I don't have to remember where I put that note-to-self, it's in
the docs for everyone's benefit. (Especially mine!) :)
j
$ svn info Catalyst.pm
URL: http://dev.catalyst.perl.org/repos/Catalyst/Catalyst-Runtime/
5.80/trunk/lib/Catalyst.pm
$ svn diff -r8393:8394
Index: Catalyst.pm
===================================================================
--- Catalyst.pm (revision 8393)
+++ Catalyst.pm (revision 8394)
@@ -1011,6 +1011,15 @@
C<@args> is an arrayref it is treated as a list of captures to be
passed
to C<uri_for_action>.
+You can maintain the arguments captured by an action (e.g.: Regex,
Chained)
+using C<< $c->req->captures >>.
+
+ # For the current action
+ $c->uri_for($c->action, $c->req->captures);
+
+ # For the Foo action in the Bar controller
+ $c->uri_for($c->controller->('Bar')->action_for('Foo'), $c->req-
>captures);
+
=cut
sub uri_for {