X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FManual%2FIntro.pod;h=5d22c939a92545a4b73630d3f4f76911473158da;hb=0497a2a1a50e9cd91695e2613094ef4b93579f49;hp=bf9353f1266444be8341dfec8e03ec39a41dbb6b;hpb=498f110b032b50ca0ed0082c2cb6d56557158eac;p=catagits%2FCatalyst-Manual.git diff --git a/lib/Catalyst/Manual/Intro.pod b/lib/Catalyst/Manual/Intro.pod index bf9353f..5d22c93 100644 --- a/lib/Catalyst/Manual/Intro.pod +++ b/lib/Catalyst/Manual/Intro.pod @@ -122,14 +122,14 @@ separately - which will turn the built server into a fully fledged production ready server (although you'll probably want to run it behind a front end proxy if you end up using it). -=back - =item * PSGI Support Starting with Catalyst version 5.9 Catalyst ships with L integration for even more powerful and flexible testing and deployment options. See L for details. +=back + =head3 Simplicity The best part is that Catalyst implements all this flexibility in a very @@ -482,9 +482,9 @@ application. use base qw/Catalyst::Controller/; - sub login : Path("login") { } + sub sign_in : Path("sign-in") { } sub new_password : Path("new-password") { } - sub logout : Path("logout") { } + sub sign_out : Path("sign-out") { } package MyApp::Controller::Catalog; @@ -540,7 +540,7 @@ Generally it's a bad idea to expose the context object (C<$c>) in your model or view code. Instead you use the C subroutine to grab the bits of the context object that you need, and provide accessors to them in the model. This ensures that C<$c> is only in -scope where it is neaded which reduces maintenance and debugging +scope where it is needed which reduces maintenance and debugging headaches. So, if for example you needed two L models in the same Catalyst model code, you might do something like this: @@ -790,7 +790,7 @@ of Catalyst component class names. =item * B -Note that I<< __PACKAGE__->config->(namespace => ... ) >> can be used to override the +Note that C<< __PACKAGE__->config->(namespace => ... ) >> can be used to override the current namespace when matching. So: package MyApp::Controller::Example;