X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Manual.git;a=blobdiff_plain;f=lib%2FCatalyst%2FManual%2FTutorial%2F03_MoreCatalystBasics.pod;h=3b95f04f75fbb6771f1abb3f6e9bdf56fbc2ab60;hp=ae57b39d2ade9ed9ed015e0034f8d84789cb4b99;hb=61cb69fd002171a4c8a0e6c1188dc3530b918993;hpb=75b13da6ee4941fabce2cfea7693ec105782a4fa diff --git a/lib/Catalyst/Manual/Tutorial/03_MoreCatalystBasics.pod b/lib/Catalyst/Manual/Tutorial/03_MoreCatalystBasics.pod index ae57b39..3b95f04 100644 --- a/lib/Catalyst/Manual/Tutorial/03_MoreCatalystBasics.pod +++ b/lib/Catalyst/Manual/Tutorial/03_MoreCatalystBasics.pod @@ -308,7 +308,7 @@ and add the following method to the controller: # Set the TT template to use. You will almost always want to do this # in your action methods (action methods respond to user input in # your controllers). - $c->stash->{template} = 'books/list.tt2'; + $c->stash(template => 'books/list.tt2'); } B: See Appendix 1 for tips on removing the leading spaces when @@ -839,7 +839,7 @@ and delete the next 2 lines): # Set the TT template to use. You will almost always want to do this # in your action methods (action methods respond to user input in # your controllers). - $c->stash->{template} = 'books/list.tt2'; + $c->stash(template => 'books/list.tt2'); } B: You may see the C<$c-Emodel('DB::Book')> un-commented @@ -1430,7 +1430,7 @@ has changed): # Set the TT template to use. You will almost always want to do this # in your action methods (actions methods respond to user input in # your controllers). - #$c->stash->{template} = 'books/list.tt2'; + #$c->stash(template => 'books/list.tt2'); }