From: Kennedy Clark Date: Thu, 12 Mar 2009 23:42:37 +0000 (+0000) Subject: Remove C<> from =head line b/c they look ugly on CPAN X-Git-Tag: v5.8005~178 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Manual.git;a=commitdiff_plain;h=8a472b348fcfa36ba50a5182fbd4449a71b8044a Remove C<> from =head line b/c they look ugly on CPAN --- diff --git a/lib/Catalyst/Manual/Tutorial/AdvancedCRUD/FormFu.pod b/lib/Catalyst/Manual/Tutorial/AdvancedCRUD/FormFu.pod index 0341461..cbcf259 100644 --- a/lib/Catalyst/Manual/Tutorial/AdvancedCRUD/FormFu.pod +++ b/lib/Catalyst/Manual/Tutorial/AdvancedCRUD/FormFu.pod @@ -67,7 +67,7 @@ for additional form management options other than L. -=head1 Install C +=head1 Install HTML::FormFu If you are following along in Debian 5, it turns out that some of the modules we need are not yet available as Debian packages at the time @@ -91,13 +91,13 @@ that aren't available as Debian packages: sudo cpan Catalyst::Component::InstancePerContext Catalyst::Controller::HTML::FormFu -=head1 C FORM CREATION +=head1 HTML::FormFu FORM CREATION This section looks at how L can be used to add additional functionality to the manually created form from Chapter 4. -=head2 Inherit From C +=head2 Inherit From Catalyst::Controller::HTML::FormFu First, change your C to inherit from L @@ -261,7 +261,7 @@ This adds a new link to the bottom of the book list page that we can use to easily launch our HTML::FormFu-based form. -=head2 Test The Create Form +=head2 Test The HTML::FormFu Create Form Press C to kill the previous server instance (if it's still running) and restart it: @@ -291,7 +291,7 @@ the previous paragraph is that the I itself is not performing any validation. -=head1 C VALIDATION AND FILTERING +=head1 HTML::FormFu VALIDATION AND FILTERING Although the use of L in the previous section did provide an automated mechanism to build the form, the real power of @@ -572,6 +572,7 @@ Stevens as a co-author (control-click), and click Submit. You will then be returned to the book list with a "Book edited" message at the top in green. Experiment with other edits to various books. + =head2 More Things to Try You are now armed with enough knowledge to be dangerous. You can keep @@ -603,6 +604,7 @@ Support the CRUD cycle for authors. Or you can proceed to write your own application, which is probably the real reason you worked through this Tutorial in the first place. + =head2 Config::General Config for this tutorial If you are having difficulty with YAML config above, please save the @@ -657,7 +659,6 @@ Apache config files. indicator submit - =head1 AUTHOR Kennedy Clark, C diff --git a/lib/Catalyst/Manual/Tutorial/Authentication.pod b/lib/Catalyst/Manual/Tutorial/Authentication.pod index 42a300c..8267025 100644 --- a/lib/Catalyst/Manual/Tutorial/Authentication.pod +++ b/lib/Catalyst/Manual/Tutorial/Authentication.pod @@ -689,8 +689,7 @@ B We are using SHA-1 hashes here, but many other hashing algorithms are supported. See C for more information. -=head2 Enable SHA-1 Hash Passwords in -C +=head2 Enable SHA-1 Hash Passwords in Catalyst::Plugin::Authentication::Store::DBIC Edit C and update it to match (the C and C are new, everything else is the same): diff --git a/lib/Catalyst/Manual/Tutorial/Authorization.pod b/lib/Catalyst/Manual/Tutorial/Authorization.pod index 66c6612..3fa136e 100644 --- a/lib/Catalyst/Manual/Tutorial/Authorization.pod +++ b/lib/Catalyst/Manual/Tutorial/Authorization.pod @@ -180,7 +180,7 @@ This code displays a different combination of links depending on the roles assigned to the user. -=head2 Limit C to C Users +=head2 Limit Books::add to 'admin' Users C statements in TT templates simply control the output that is sent to the user's browser; it provides no real enforcement (if users know or diff --git a/lib/Catalyst/Manual/Tutorial/BasicCRUD.pod b/lib/Catalyst/Manual/Tutorial/BasicCRUD.pod index f6e098a..7ae222e 100644 --- a/lib/Catalyst/Manual/Tutorial/BasicCRUD.pod +++ b/lib/Catalyst/Manual/Tutorial/BasicCRUD.pod @@ -140,7 +140,7 @@ controller methods (at least the ones that directly handle user input), it then sets the template that should handle this request. -=head2 Include a Template for the C Action: +=head2 Include a Template for the 'url_create' Action: Edit C and then enter: @@ -188,7 +188,7 @@ variables. Other than that, the rest of the code should be familiar from the examples in Chapter 3. -=head2 Try the C Feature +=head2 Try the 'url_create' Feature If the application is still running from before, use C to kill it. Then restart the server: @@ -391,7 +391,7 @@ object. Click the "Return to list" link, you should find that there are now seven books shown (two copies of TCPIP_Illustrated_Vol-2). -=head2 Refactor to Use a "Base" Method to Start the Chains +=head2 Refactor to Use a 'base' Method to Start the Chains Let's make a quick update to our initial Chained action to show a little more of the power of chaining. First, open @@ -858,7 +858,7 @@ involves a second request), the C is cleared before it can be displayed. -=head2 Using C to Pass Query Parameters +=head2 Using 'uri_for' to Pass Query Parameters There are several ways to pass information across a redirect. One option is to use the C technique that we will see in Chapter 5 diff --git a/lib/Catalyst/Manual/Tutorial/MoreCatalystBasics.pod b/lib/Catalyst/Manual/Tutorial/MoreCatalystBasics.pod index e125cd7..9a9033a 100644 --- a/lib/Catalyst/Manual/Tutorial/MoreCatalystBasics.pod +++ b/lib/Catalyst/Manual/Tutorial/MoreCatalystBasics.pod @@ -635,7 +635,7 @@ For using other databases, such as PostgreSQL or MySQL, see L. -=head1 DATABASE ACCESS WITH C +=head1 DATABASE ACCESS WITH DBIx::Class Catalyst can be used with virtually any form of persistent datastore available via Perl. For example, @@ -1046,7 +1046,7 @@ provide a template that fills in the C section of our wrapper template -- the wrapper will provide the overall feel of the page. -=head1 A STATIC DATABASE MODEL WITH C +=head1 A STATIC DATABASE MODEL WITH DBIx::Class First, let's be sure we have a recent versino of the DBIC helper, L, by @@ -1380,7 +1380,7 @@ skip to Chapter 4, L, if you wish.> -=head2 Using C for the Default View +=head2 Using 'RenderView' for the Default View Once your controller logic has processed the request from a user, it forwards processing to your view in order to generate the appropriate