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=2c2ea7a757b8e06daf6fc04a51a5e3bdc25fd38e;hp=aef37dbb5b3b9eefcbe91b83767bdea01cc58095;hb=a1de5b6537e37154353b246b66def4f0264b731f;hpb=5988477160c698d0e5efd1cf1911845d40a327cf diff --git a/lib/Catalyst/Manual/Tutorial/03_MoreCatalystBasics.pod b/lib/Catalyst/Manual/Tutorial/03_MoreCatalystBasics.pod index aef37db..2c2ea7a 100644 --- a/lib/Catalyst/Manual/Tutorial/03_MoreCatalystBasics.pod +++ b/lib/Catalyst/Manual/Tutorial/03_MoreCatalystBasics.pod @@ -56,24 +56,27 @@ L =head1 DESCRIPTION -This chapter of the tutorial builds on the work done in Chapter 2 to -explore some features that are more typical of "real world" web -applications. From this chapter of the tutorial onward, we will be -building a simple book database application. Although the application -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 -L. - -Please take a look at -L before -doing the rest of this tutorial. Although the tutorial should work -correctly under most any recent version of Perl running on any -operating system, the tutorial has been written using Debian 5 and -tested to be sure it runs correctly in this environment. +This chapter of the tutorial builds on the work done in Chapter 2 to +explore some features that are more typical of "real world" web +applications. From this chapter of the tutorial onward, we will be +building a simple book database application. Although the application +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. + +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 +L +before doing the rest of this tutorial. Although the tutorial should +work correctly under most any recent version of Perl running on any +operating system, the tutorial has been written using the virtual +machine that is available for download. The entire tutorial has been +tested to be sure it runs correctly in this environment, so it is +the most trouble-free way to get started with Catalyst. =head1 CREATE A NEW APPLICATION @@ -91,22 +94,29 @@ tutorial or in a directory that already has a "MyApp" subdirectory): created "MyApp/root" ... created "MyApp/script/myapp_create.pl" + Change to application directory and Run "perl Makefile.PL" to make sure your install is complete + +And change the "MyApp" directory the helper created: + $ cd MyApp This creates a similar skeletal structure to what we saw in Chapter 2 of -the tutorial, except with C and C substituted for -C and C. +the tutorial, except with C and C substituted for C +and C. (As noted in Chapter 2, omit the ".pl" from the command +if you are using Strawberry Perl.) =head1 EDIT THE LIST OF CATALYST PLUGINS One of the greatest benefits of Catalyst is that it has such a large -library of plugins and base classes available. Plugins are used to -seamlessly integrate existing Perl modules into the overall Catalyst -framework. In general, they do this by adding additional methods to the -C object (generally written as C<$c>) that Catalyst passes to -every component throughout the framework. - +library of base classes and plugins available that you can use to easily +add functionality to your application. Plugins are used to seamlessly +integrate existing Perl modules into the overall Catalyst framework. In +general, they do this by adding additional methods to the C +object (generally written as C<$c>) that Catalyst passes to every +component throughout the framework. + +Take a look at the file C that the helper created above. By default, Catalyst enables three plugins/flags: =over 4 @@ -119,47 +129,65 @@ Enables the Catalyst debug output you saw when we started the C