From: Marcus Ramberg Date: Thu, 23 Jun 2005 20:54:19 +0000 (+0000) Subject: updated cookbook X-Git-Tag: 5.7099_04~1292 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=2343e11777834e8785e966f572a3a0a2132c3a89 updated cookbook --- diff --git a/Changes b/Changes index 6b86d02..631d665 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,8 @@ This file documents the revision history for Perl extension Catalyst. 5.30 2005-00-00 00:00:00 + + - Updated cookbook - Allow overriding home/root in config. - make module build cons README automatically. - prettify home path by resolving '..' (Andy Grundman) diff --git a/lib/Catalyst/Manual/Cookbook.pod b/lib/Catalyst/Manual/Cookbook.pod index 58f48cd..00e8eda 100644 --- a/lib/Catalyst/Manual/Cookbook.pod +++ b/lib/Catalyst/Manual/Cookbook.pod @@ -15,13 +15,13 @@ placing a C call in the C action. sub end : Private { my ( $self, $c ) = @_; - die "testing"; + die "forced debug"; } If you're tired of removing and adding this all the time, you can easily add a condition. For example: - die "Testing" if $c->params->{dump_info}; + die "force debug" if $c->req->params->{dump_info}; =head2 Disable statistics @@ -359,6 +359,14 @@ authentication, authorization, and access check phases. For more information see the FastCGI documentation, the C module and L. +=head1 Forwarding with a parameter + +Sometimes you want to pass along an argument when forward to another +action. This can easily be accomplished like this: + + $c->req->args([qw/arg1 arg2 arg3/]); + $c->forward('/wherever'); + =head1 AUTHOR Sebastian Riedel, C