From: Marcus Ramberg Date: Thu, 7 Apr 2005 14:49:32 +0000 (+0000) Subject: fixes for M/V/C X-Git-Tag: 5.7099_04~1592 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=2feb6632ee43ec51730191d6ffb7ddd7946c647e fixes for M/V/C --- diff --git a/lib/Catalyst/Manual/Intro.pod b/lib/Catalyst/Manual/Intro.pod index d43614a..4cdbb21 100644 --- a/lib/Catalyst/Manual/Intro.pod +++ b/lib/Catalyst/Manual/Intro.pod @@ -105,8 +105,8 @@ Here's how to install Catalyst and get a simple application up and running, usin =head3 Setup - $ catalyst.pl My::App - $ cd My-App + $ catalyst.pl MyApp + $ cd MyApp $ script/create.pl controller My::Controller =head3 Run @@ -277,12 +277,12 @@ directly to the application base. =item * B - package MyApp::Controller::My::Controller; + package MyApp::C::My::Controller; sub foo : Local { } Matches http://localhost:3000/my/controller/foo. -This action type indicates that the matching URL must be prefixed with a modified form of the component's class (package) name. This modified class name excludes the parts that have a pre-defined meaning in Catalyst ("MyApp::Controller" in the above example), replaces "::" with "_" and converts the name to lower case. See L for a full explanation of the pre-defined meaning of Catalyst component class names. +This action type indicates that the matching URL must be prefixed with a modified form of the component's class (package) name. This modified class name excludes the parts that have a pre-defined meaning in Catalyst ("MyApp::C" in the above example), replaces "::" with "/" and converts the name to lower case. See L for a full explanation of the pre-defined meaning of Catalyst component class names. =item * B @@ -425,7 +425,7 @@ Again, Catalyst has an uncommonly flexible component system. You can define as m All components must inherit from L, which provides a simple class structure and some common class methods like C and C (constructor). - package MyApp::Controller::MyController; + package MyApp::C::MyController; use strict; use base 'Catalyst::Base'; @@ -472,7 +472,7 @@ This gives us a process() method and we can now just do $c->forward('MyApp::V::T sub end : Private { my ( $self, $c ) = @_; - $c->forward('MyApp::View::TT'); + $c->forward('MyApp::V::TT'); } You normally render templates at the end of a request, so it's a perfect use for the global end action.