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=4a96d18921cb230c697549271e62320ea1000c3d;hp=f0b30422999a2d39c2efd6da2c41fd2899ea9617;hb=1dc333c7b1dbb2334c1a263f5c19e6191f5562a8;hpb=a467a71409ca619746c5174d46a0366c957e2ac7 diff --git a/lib/Catalyst/Manual/Tutorial/03_MoreCatalystBasics.pod b/lib/Catalyst/Manual/Tutorial/03_MoreCatalystBasics.pod index f0b3042..4a96d18 100644 --- a/lib/Catalyst/Manual/Tutorial/03_MoreCatalystBasics.pod +++ b/lib/Catalyst/Manual/Tutorial/03_MoreCatalystBasics.pod @@ -200,20 +200,22 @@ For our application, we want to add one new plugin into the mix. To do this, edit C (this file is generally referred to as your I) and delete the lines with: - use Catalyst qw/-Debug - ConfigLoader - Static::Simple/; + use Catalyst qw/ + -Debug + ConfigLoader + Static::Simple + /; Then replace it with: # Load plugins use Catalyst qw/ - -Debug - ConfigLoader - Static::Simple - - StackTrace - /; + -Debug + ConfigLoader + Static::Simple + + StackTrace + /; B Recent versions of C have used a variety of techniques to load these plugins/flags. For example, you might see @@ -233,7 +235,7 @@ browser, not in the console window from which you're running your application, which is where logging output usually goes. Make sure when adding new plugins you also include them as a new -dependancy within the Makefile.PL file. For example, after adding +dependency within the Makefile.PL file. For example, after adding the StackTrace plugin the Makefile.PL should include the following line: @@ -560,8 +562,9 @@ tutorial. =head1 CREATE A SQLITE DATABASE In this step, we make a text file with the required SQL commands to -create a database table and load some sample data. We will use SQLite, -a popular database that is lightweight and easy to use. Open +create a database table and load some sample data. We will use +SQLite (L), a popular database that is +lightweight and easy to use. Be sure to get at least version 3. Open C in your editor and enter: -- @@ -648,13 +651,13 @@ required if you do a single SQL statement on the command line). Use your OS command prompt. Please note that here we have chosen to use 'singular' table names. This -is because the default inflection code for L +is because the default inflection code for L does NOT handle plurals. There has been much philosophical discussion on whether table names should be plural or singular. There is no one correct answer, as long as one makes a choice and remains consistent with it. If you prefer plural table names (e.g. they are easier and more natural to read) then you will need to pass it an inflect_map -option. See L for more information. +option. See L for more information. For using other databases, such as PostgreSQL or MySQL, see L. @@ -754,11 +757,6 @@ into files. =item * -C causes the help to include the -L DBIC component. - -=item * - And finally, C is the standard DBI connect string for use with SQLite.