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=29ea997d95a4ba857ad762ddbd8d11bd2b3dd46b;hp=c52f4351bcf75c8901fe1c5f0a8bc76eccb2c84a;hb=c010ae0de590159369925f16f03dcad4732a91e6;hpb=3533daff0314522f79dff9c618da087568f1378c diff --git a/lib/Catalyst/Manual/Tutorial/MoreCatalystBasics.pod b/lib/Catalyst/Manual/Tutorial/MoreCatalystBasics.pod index c52f435..29ea997 100644 --- a/lib/Catalyst/Manual/Tutorial/MoreCatalystBasics.pod +++ b/lib/Catalyst/Manual/Tutorial/MoreCatalystBasics.pod @@ -133,12 +133,12 @@ free to make use of it in your own projects. L C provides an automatic way to load configurable -parameters for your application from a central YAML file (versus having -the values hard-coded inside your Perl modules). If you have not been -exposed to YAML before, it is a human-readable data serialization format -that can be used to read (and write) values to/from text files. We will -see how to use this feature of Catalyst during the authentication and -authorization sections (Part 5 and Part 6). +parameters for your application from a central +L file (versus having the values +hard-coded inside your Perl modules). Config::General uses syntax +very similar to Apache configuration files. We will see how to use +this feature of Catalyst during the authentication and authorization +sections (Part 5 and Part 6). =item * @@ -570,13 +570,13 @@ in the past, 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. -=head2 Create a Dynamic DBIC Model +=head2 Create a DBIC Model -Use the C model helper option to build a model that +Use the C model helper option to build a model that dynamically reads your database structure every time the application starts: - $ script/myapp_create.pl model MyAppDB DBIC::Schema MyApp::Schema::MyAppDB create=dynamic dbi:SQLite:myapp.db + $ script/myapp_create.pl model MyAppDB DBIC::Schema MyApp::Schema::MyAppDB create=static dbi:SQLite:myapp.db exists "/home/me/MyApp/script/../lib/MyApp/Model" exists "/home/me/MyApp/script/../t" created "/home/me/MyApp/script/../lib/MyApp/Schema" @@ -597,13 +597,6 @@ the schema information from the database every time the application starts. And finally, C is the standard DBI connect string for use with SQLite. -B: Although the C option to the DBIC helper -makes for a nifty demonstration, is not suitable for real world -applications. Moreover, it may not be supported in future versions of -DBIC. After this demonstration, please use the C -option that we switch to below. - - =head1 RUN THE APPLICATION First, let's enable an environment variable option that causes