X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Manual.git;a=blobdiff_plain;f=lib%2FCatalyst%2FManual%2FCookbook.pod;h=1800657599c22cfa384df09b0a38e3e7dd7b5849;hp=bf6372bc664a3dab5dc107268f4ddc68d6553699;hb=e8200f38d465b85ad84eb11718db1e61230ce73b;hpb=02bb2b5a140dc22d7d002fcdce868656d704676a diff --git a/lib/Catalyst/Manual/Cookbook.pod b/lib/Catalyst/Manual/Cookbook.pod index bf6372b..1800657 100644 --- a/lib/Catalyst/Manual/Cookbook.pod +++ b/lib/Catalyst/Manual/Cookbook.pod @@ -223,8 +223,8 @@ See also L. =head1 Skipping your VCS's directories -Catalyst uses Module::Pluggable to load Models, Views, and Controllers. -Module::Pluggable will scan through all directories and load modules +Catalyst uses L to load Models, Views, and Controllers. +L will scan through all directories and load modules it finds. Sometimes you might want to skip some of these directories, for example when your version control system makes a subdirectory with meta-information in every version-controlled directory. While @@ -240,7 +240,7 @@ You can make Catalyst skip these directories using the Catalyst config: setup_components => { except => qr/SCCS/ }, ); -See the Module::Pluggable manual page for more information on B +See the L manual page for more information on B and other options. =head1 Users and Access Control @@ -685,25 +685,37 @@ Response: Now follow these few steps to implement the application: -1. Install Catalyst (5.61 or later), Catalyst::Plugin::XMLRPC (0.06 or -later) and SOAP::Lite (for XMLRPCsh.pl). +=over 4 + +=item 1. + +Install L (5.61 or later), L (0.06 or +later) and L (for F). + +=item 2. -2. Create an application framework: +Create an application framework: % catalyst.pl MyApp ... % cd MyApp -3. Add the XMLRPC plugin to MyApp.pm +=item 3. + +Add the XMLRPC plugin to MyApp.pm use Catalyst qw/-Debug Static::Simple XMLRPC/; -4. Add an API controller +=item 4. + +Add an API controller % ./script/myapp_create.pl controller API -5. Add a XMLRPC redispatch method and an add method with Remote -attribute to lib/MyApp/Controller/API.pm +=item 5. + +Add a XMLRPC redispatch method and an add method with Remote +attribute to F sub default :Path { my ( $self, $c ) = @_; @@ -722,8 +734,10 @@ class. The C method is not a traditional action; it has no private or public path. Only the XMLRPC dispatcher knows it exists. -6. That's it! You have built your first web service. Let's test it with -XMLRPCsh.pl (part of SOAP::Lite): +=item 6. + +That's it! You have built your first web service. Let's test it with +F (part of L): % ./script/myapp_server.pl ... @@ -748,7 +762,7 @@ enforce a specific one. Views pertain to the display of your application. As with models, Catalyst is uncommonly flexible. The recipes below are just a start. -=head2 Catalyst::View::TT +=head2 L One of the first things you probably want to do when starting a new Catalyst application is set up your View. Catalyst doesn't care how you @@ -760,13 +774,13 @@ and though there are several template systems available, L