X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=blobdiff_plain;f=lib%2FCatalyst.pm;h=0ba2c4dfd68de89c8a8bc2c08a8222c54f21927d;hp=4fc35f1c55238017826e38e5924ced08a4ba672b;hb=18339b159f0d0dd7c057a3f959c30f4777bb4f91;hpb=527ada1372760bc4de77f346ad3892c832baf43f diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index 4fc35f1..0ba2c4d 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -116,9 +116,6 @@ Catalyst - The Elegant MVC Web Application Framework # called for /bar/of/soap, /bar/of/soap/10, etc. sub bar : Path('/bar/of/soap') { ... } - # called for / and only /, no other args - sub baz : Path { ... } - # called for all actions, from the top-most controller inwards sub auto : Private { my ( $self, $c ) = @_; @@ -141,8 +138,11 @@ Catalyst - The Elegant MVC Web Application Framework # called for /foo/bar sub bar : Local { ... } - # overrides /foo, but not /foo/1, etc. - sub index : Path { ... } + # called for /blargle + sub blargle : Global { ... } + + # an index action matches /foo, but not /foo/1, etc. + sub index : Private { ... } ### in MyApp/Controller/Foo/Bar.pm # called for /foo/bar/baz @@ -226,8 +226,6 @@ controller of the current action. Returns the current L object. - my $req = $c->req; - =back =head2 Processing and response to the current request @@ -299,8 +297,6 @@ sub error { Returns the current L object. - my $res = $c->res; - =item $c->stash Returns a hashref to the stash, which may be used to store data and pass it