X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Manual.git;a=blobdiff_plain;f=lib%2FCatalyst%2FManual%2FIntro.pod;fp=lib%2FCatalyst%2FManual%2FIntro.pod;h=77b2c81b0318437a01e7ef5a5e8364249eda9ae8;hp=4f3fe4390d63e264cec681001b9bdbb47f4510be;hb=080bb6202ae1dc9a786bb32afcb391f542c2f0fc;hpb=08c0026dc8cd9b6f157e952b143ad329e68dbbe2 diff --git a/lib/Catalyst/Manual/Intro.pod b/lib/Catalyst/Manual/Intro.pod index 4f3fe43..77b2c81 100644 --- a/lib/Catalyst/Manual/Intro.pod +++ b/lib/Catalyst/Manual/Intro.pod @@ -294,7 +294,7 @@ where the first C tells the script that the name of the view should be C, and the second that it should be a Template Toolkit view.) This gives us a process() method and we can now just do -$c->forward('MyApp::View::TT') to render our templates. The base class +C<< $c->forward('MyApp::View::TT') >> to render our templates. The base class makes process() implicit, so we don't have to say C<< $c->forward(qw/MyApp::View::TT process/) >>. @@ -514,7 +514,7 @@ equivalent to the same controller above: =head3 ACCEPT_CONTEXT -Whenever you call $c->component("Foo") you get back an object - the +Whenever you call C<< $c->component("Foo") >> you get back an object - the instance of the model. If the component supports the C method instead of returning the model itself, the return value of C<< $model->ACCEPT_CONTEXT( $c ) >> will be used. @@ -562,7 +562,7 @@ In a subroutine in the model code, we can then do this: Note that we still want the Catalyst models to be a thin wrapper around classes that will work independently of the Catalyst application to promote reusability of code. Here we might just want -to grab the $c->model('DB')->schema so as to get the connection +to grab the C<< $c->model('DB')->schema >> so as to get the connection information from the Catalyst application's configuration for example. The life time of this value is B, and not per request. To