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=f3ff00ee498e4fbb99a9c2b5ba627a57404ae151;hp=b6f9e72316a77ea31a67349467f20cbcd6000836;hb=a46b474eb241c3eac09ac0cd8af400a864de3ee5;hpb=c3cf3bc32d1fb13139827cd81749413e5b724111 diff --git a/lib/Catalyst/Manual/Tutorial/MoreCatalystBasics.pod b/lib/Catalyst/Manual/Tutorial/MoreCatalystBasics.pod index b6f9e72..f3ff00e 100644 --- a/lib/Catalyst/Manual/Tutorial/MoreCatalystBasics.pod +++ b/lib/Catalyst/Manual/Tutorial/MoreCatalystBasics.pod @@ -499,6 +499,7 @@ Then create C in your editor and enter: [% book.title %] [% book.rating %] + [% END -%] @@ -653,18 +654,18 @@ object-relational mapping (ORM) technology to create objects associated with tables in a relational database. Matt Trout's L (abbreviated as "DBIC") has rapidly emerged as the Perl-based ORM technology of choice. Most new Catalyst -applications rely on DBIC, as will this tutorial. +applications rely on DBIx::Class, as will this tutorial. -Although DBIC has included support for a C mode to -automatically read the database structure every time the application -starts, it's use is no longer recommended. While it can make -for "flashy" demos, the use of the C mode we use below -can be implemented just as quickly and provides many advantages (such -as the ability to add your own methods to the overall DBIC framework, -a technique that we see in Chapter 4). +Although DBIx::Class has included support for a C mode +to automatically read the database structure every time the +application starts, it's use is no longer recommended. While it can +make for "flashy" demos, the use of the C mode we use +below can be implemented just as quickly and provides many advantages +(such as the ability to add your own methods to the overall DBIC +framework, a technique that we see in Chapter 4). -=head2 Make Sure You Have a Recent Version of the DBIC Model +=head2 Make Sure You Have a Recent Version of the DBIx::Class Model First, let's be sure we have a recent version of the DBIC helper, L, by @@ -683,7 +684,7 @@ And re-run the version print command to verify that you are now at 0.23 or higher. -=head2 Create Static DBIC Schema Files +=head2 Create Static DBIx::Class Schema Files Use the model helper with the C option to read the database with @@ -742,7 +743,7 @@ find that C contains a C subdirectory, which then has a subdirectory called "Result". This "Result" subdirectory then has files named according to each of the tables in our simple database (C, C, and C). These three -files are called "Result Classes" in DBIC nomenclature. Although the +files are called "Result Classes" in DBIx::Class nomenclature. Although the Result Class files are named after tables in our database, the classes correspond to the I that is returned by DBIC (more on this later, especially in @@ -768,7 +769,7 @@ when you launch the application). B Older versions of L use the -deprecated DBIC C technique instead of the newer +deprecated DBIx::Class C technique instead of the newer C. For new applications, please try to use C since it more easily supports a very useful DBIC technique called "ResultSet Classes." If you need to convert an @@ -990,8 +991,8 @@ books loaded by the C script above without any formatting. The rating for each book should appear on each row, but the "Author(s)" column will still be blank (we will fill that in later). -Also notice in the output of the C