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=5137dc47dfb839022dc2d7a3c009fedcd53980bc;hp=f1e82f08413a2d5987b7fbdc64a06bd0f79cd2bd;hb=477a6d5b13f55eb335979812080e4a11217f19d6;hpb=462f687dffd66c46f8ff4c908fa93051a866de00 diff --git a/lib/Catalyst/Manual/Tutorial/03_MoreCatalystBasics.pod b/lib/Catalyst/Manual/Tutorial/03_MoreCatalystBasics.pod index f1e82f0..5137dc4 100644 --- a/lib/Catalyst/Manual/Tutorial/03_MoreCatalystBasics.pod +++ b/lib/Catalyst/Manual/Tutorial/03_MoreCatalystBasics.pod @@ -64,8 +64,9 @@ will be too limited to be of use to anyone, it should provide a basic environment where we can explore a variety of features used in virtually all web applications. -You can check out the source code for this example from the Catalyst -Subversion repository as per the instructions in +Source code for the tutorial in included in the F +directory of the Tutorial Virtual machine (one subdirectory per +chapter). There are also instructions for downloading the code in L. Please take a look at @@ -298,10 +299,10 @@ Use the Catalyst C script to add a controller for book-related actions: $ script/myapp_create.pl controller Books - exists "/root/MyApp/script/../lib/MyApp/Controller" - exists "/root/MyApp/script/../t" - created "/root/MyApp/script/../lib/MyApp/Controller/Books.pm" - created "/root/MyApp/script/../t/controller_Books.t" + exists "/home/catalyst/MyApp/script/../lib/MyApp/Controller" + exists "/home/catalyst/MyApp/script/../t" + created "/home/catalyst/MyApp/script/../lib/MyApp/Controller/Books.pm" + created "/home/catalyst/MyApp/script/../t/controller_Books.t" Then edit C (as discussed in L of @@ -460,10 +461,10 @@ For our book application, enter the following command to enable the C style of view rendering: $ script/myapp_create.pl view HTML TT - exists "/root/MyApp/script/../lib/MyApp/View" - exists "/root/MyApp/script/../t" - created "/root/MyApp/script/../lib/MyApp/View/HTML.pm" - created "/root/MyApp/script/../t/view_HTML.t" + exists "/home/catalyst/MyApp/script/../lib/MyApp/View" + exists "/home/catalyst/MyApp/script/../t" + created "/home/catalyst/MyApp/script/../lib/MyApp/View/HTML.pm" + created "/home/catalyst/MyApp/script/../t/view_HTML.t" This creates a view called C (the first argument) in a file called C that uses L (the second argument) as the @@ -581,7 +582,7 @@ looping, conditional logic, etc. In general, TT simplifies the usual range of Perl operators down to the single dot (".") operator. This applies to operations as diverse as method calls, hash lookups, and list index values (see L for details and -examples). In addition to the usual L