X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Manual.git;a=blobdiff_plain;f=lib%2FCatalyst%2FManual%2FTutorial%2FMoreCatalystBasics.pod;h=e8ecba9c0a18c3a3963f194538892ac3d760db17;hp=7f29eaf352f0a7f208182326843f68b957f8fce5;hb=c2dfb562df6c941e38a41b175cbb8629cab2cf62;hpb=4dc2dec8075eaf029b3da3e21989e31022368f79 diff --git a/lib/Catalyst/Manual/Tutorial/MoreCatalystBasics.pod b/lib/Catalyst/Manual/Tutorial/MoreCatalystBasics.pod index 7f29eaf..e8ecba9 100644 --- a/lib/Catalyst/Manual/Tutorial/MoreCatalystBasics.pod +++ b/lib/Catalyst/Manual/Tutorial/MoreCatalystBasics.pod @@ -643,7 +643,6 @@ C<[$c-Emodel('DB::Books')-Eall]> and delete the next 2 lines): $c->stash->{template} = 'books/list.tt2'; } - B: You may see the C<$c-Emodel('DB::Book')> un-commented above written as C<$c-Emodel('DB')-Eresultset('Book')>. The two are equivalent. Either way, C<$c-Emodel> returns a @@ -806,7 +805,7 @@ Edit C and change it to match the following: TEMPLATE_EXTENSION => '.tt2', # Set the location for TT files INCLUDE_PATH => [ - MyApp->path_to( 'root/src' ), + MyApp->path_to( 'root', 'src' ), ], # Set to 1 for detailed timer stats in your HTML as comments TIMER => 0, @@ -858,7 +857,7 @@ For the tutorial, open C and input the following: - + @@ -996,7 +995,7 @@ L as its base class (L is only being used by the helper to load the schema once and then create the static files for us) and C only contains a call to the -C method. You will also find that C +C method. You will also find that C contains a C subdirectory, with one file inside this directory for each of the tables in our simple database (C, C, and C). These three files were created @@ -1125,11 +1124,13 @@ Make sure that the application loads correctly and that you see the three dynamically created model class (one for each of the table-specific schema classes we created). -Then hit the URL L and be sure that -the book list is displayed. +Then hit the URL L and be sure that +the book list is displayed via the relationships established above. You +can leave the development server running for the next step if you wish. -You can leave the development server running for the next step if you -wish. +B You will not see the authors yet because the view does not yet +use the new relations. Read on to the next section where we update the +template to do that. =head1 UPDATING THE VIEW @@ -1171,15 +1172,23 @@ enabled, you should also now see five more C