X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Manual.git;a=blobdiff_plain;f=lib%2FCatalyst%2FManual%2FTutorial%2FCatalystBasics.pod;fp=lib%2FCatalyst%2FManual%2FTutorial%2FCatalystBasics.pod;h=37ddb34b90e0f7b6f7078d1544b1606e10459780;hp=be04af1f034b20e0daca3317537d547b42c2f779;hb=14e5ed66dcd737f2210d8d7d8c22e3c474992846;hpb=59d6a035fe3e35282ed23de210ec5a9beb1aa1a3 diff --git a/lib/Catalyst/Manual/Tutorial/CatalystBasics.pod b/lib/Catalyst/Manual/Tutorial/CatalystBasics.pod index be04af1..37ddb34 100644 --- a/lib/Catalyst/Manual/Tutorial/CatalystBasics.pod +++ b/lib/Catalyst/Manual/Tutorial/CatalystBasics.pod @@ -255,8 +255,8 @@ objects. (See L, L, and L) -C<$c->response->body> sets the HTTP response (see -L), while C<$c->welcome_message> +C<$c-Eresponse-Ebody> sets the HTTP response (see +L), while C<$c-Ewelcome_message> is a special method that returns the welcome message that you saw in your browser. @@ -350,13 +350,13 @@ C to the following: $c->stash->{template} = 'hello.tt'; } -This time, instead of doing C<$c->response->body()>, you are setting +This time, instead of doing C<$c-Eresponse->body()>, you are setting the value of the "template" hash key in the Catalyst "stash", an area for putting information to share with other parts of your application. The "template" key determines which template will be displayed at the end of the method. Catalyst controllers have a default "end" action for all methods which causes the first (or default) view to be -rendered (unless there's a C<$c->response->body()> statement). So your +rendered (unless there's a C<$c-Eresponse->body()> statement). So your template will be magically displayed at the end of your method. After saving the file, restart the development server, and look at