From: Rafael Kitover Date: Sun, 7 Feb 2010 12:39:32 +0000 (+0000) Subject: update chapter 9 formfu POD X-Git-Tag: v5.8005~47 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Manual.git;a=commitdiff_plain;h=96a8735673ba59a0cdc20672020dffab4d6209de update chapter 9 formfu POD --- diff --git a/lib/Catalyst/Manual/Tutorial/01_Intro.pod b/lib/Catalyst/Manual/Tutorial/01_Intro.pod index be5bb83..05447d4 100644 --- a/lib/Catalyst/Manual/Tutorial/01_Intro.pod +++ b/lib/Catalyst/Manual/Tutorial/01_Intro.pod @@ -620,16 +620,16 @@ with the following commands: wget http://dev.catalyst.perl.org/repos/Catalyst/trunk/examples/Tutorial/MyApp_Chapter8.tgz tar zxvf MyApp_Chapter8.tgz cd MyApp - CATALYST_DEBUG=0 prove --lib lib t + CATALYST_DEBUG=0 prove -wl t -If you wish to include the L section in -your tests, substitute C for -C in the URL above. +If you wish to include the L section in your tests, +substitute C for C in the URL +above. wget http://dev.catalyst.perl.org/repos/Catalyst/trunk/examples/Tutorial/MyApp_Chapter9_FormFu.tgz tar zxvf MyApp_Chapter8.tgz cd MyApp - CATALYST_DEBUG=0 prove --lib lib t + CATALYST_DEBUG=0 prove -wl t You can also fire up the application under the development server that is conveniently built in to Catalyst. Just issue this command from the C directory where you diff --git a/lib/Catalyst/Manual/Tutorial/09_AdvancedCRUD/09_FormFu.pod b/lib/Catalyst/Manual/Tutorial/09_AdvancedCRUD/09_FormFu.pod index 113720f..52225af 100644 --- a/lib/Catalyst/Manual/Tutorial/09_AdvancedCRUD/09_FormFu.pod +++ b/lib/Catalyst/Manual/Tutorial/09_AdvancedCRUD/09_FormFu.pod @@ -77,13 +77,13 @@ add additional functionality to the manually created form from Chapter 4. First, change your C to inherit from L -by changing the C line from the default of: +by changing the C line from the default of: - use parent 'Catalyst::Controller'; + BEGIN {extends 'Catalyst::Controller'; } to use the FormFu base controller class: - use parent 'Catalyst::Controller::HTML::FormFu'; + BEGIN {extends 'Catalyst::Controller::HTML::FormFu'; } =head2 Add Action to Display and Save the Form