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=aa66e12e17de6cc64213bbe1d99973c37e8af17e;hp=cf413cda339e895b1ba927d735265a2e61ed1ee5;hb=8a7c51514fe8828c25ecd353ad2e9dc3b456ac9a;hpb=905a3a26761669e7c4fd80daa50034eaa3375b50 diff --git a/lib/Catalyst/Manual/Tutorial/MoreCatalystBasics.pod b/lib/Catalyst/Manual/Tutorial/MoreCatalystBasics.pod index cf413cd..aa66e12 100644 --- a/lib/Catalyst/Manual/Tutorial/MoreCatalystBasics.pod +++ b/lib/Catalyst/Manual/Tutorial/MoreCatalystBasics.pod @@ -87,7 +87,7 @@ tutorial): $ cd MyApp This creates a similar skeletal structure to what we saw in Part 2 of -the tutorial, except with C or C substituted for +the tutorial, except with C and C substituted for C and C. @@ -181,17 +181,17 @@ To modify the list of plugins, edit C (this file is generally referred to as your I) and delete the line with: - use Catalyst qw/-Debug ConfigLoader Static::Simple/; + __PACKAGE__->setup(qw/-Debug ConfigLoader Static::Simple/); Replace it with: - use Catalyst qw/ + __PACKAGE__->setup(qw/ -Debug ConfigLoader Static::Simple StackTrace - /; + /); This tells Catalyst to start using one new plugin: @@ -361,30 +361,12 @@ directories that can be used to customize the look and feel of your application. Also take a look at C for config values set by the C helper. -B: Note that TTSite does one thing that could confuse people who -are used to the normal C Catalyst view: it redefines the Catalyst -context object in templates from its usual C to C. When -looking at other Catalyst examples, remember that they almost always use -C. Note that Catalyst and TT I when you use the -wrong name to access the context object...TT simply outputs blanks for -that bogus logic (see next tip to change this behavior with TT C -options). Finally, be aware that this change in name I -applies to how the context object is accessed inside your TT templates; -your controllers will continue to use C<$c> (or whatever name you use -when fetching the reference from C<@_> inside your methods). (You can -change back to the "default" behavior be removing the C -line from C, but you will also have to edit -C and C. If you do this, be -careful not to have a collision between your own C variable and the -Catalyst C variable.) - B: When troubleshooting TT it can be helpful to enable variable C options. You can do this in a Catalyst environment by adding a C line to the C<__PACKAGE__->config> declaration in C: __PACKAGE__->config({ - CATALYST_VAR => 'Catalyst', ... DEBUG => 'undef', ...