From: Marcus Ramberg Date: Wed, 19 Oct 2005 10:24:30 +0000 (+0000) Subject: improved spelling in welcome screen. X-Git-Tag: 5.7099_04~1185 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=4b8cb77860ecc4332de2155b78d47a996bb722da improved spelling in welcome screen. Removed references to CRUD in the Cookbook --- diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index a15482f..aed8d01 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -597,19 +597,19 @@ sub welcome_message {

$name on Catalyst $VERSION

-

Welcome to the wonderfull world of Catalyst. - This MVC framework will make webdevelopment +

Welcome to the wonderful world of Catalyst. + This MVC framework will make web development something you had never expected it to be: Fun, rewarding and quick.

What to do now?

-

That all depends really, on what you want to do. +

That really depends on what you want to do. We do, however, provide you with a few starting points.

If you want to jump right into web development with Catalyst you might want to check out the documentation.

perldocCatalyst::Manual
 perldocCatalyst::Manual::Intro

If you would like some background information on the - MVC-pattern, theese links might be able to help you out.

+ MVC-pattern, these links might be of help to you.

In conclusion

-

The Catalyst team hope you will enjoy Catalyst as much as we enjoyed making it, and that rest asure that any and all +

The Catalyst team hope you will enjoy using Catalyst as much + as we enjoyed making it, and rest assured that any and all feedback is welcomed

-

-- there is no cabal, 2005

+

-- #1. the first rule of the Cabal is, you do not + talk about the Cabal.
+ #2. the second rule of the Cabal is, you DO NOT + talkk about the Cabal.

diff --git a/lib/Catalyst/Manual/Cookbook.pod b/lib/Catalyst/Manual/Cookbook.pod index 2cfdf77..ff80c19 100644 --- a/lib/Catalyst/Manual/Cookbook.pod +++ b/lib/Catalyst/Manual/Cookbook.pod @@ -40,45 +40,15 @@ statistics in your debug messages. =head2 Scaffolding Scaffolding is very simple with Catalyst. -Just use Catalyst::Model::CDBI::CRUD as your base class. - # lib/MyApp/Model/CDBI.pm - package MyApp::Model::CDBI; +The recommended way is to use Catalyst::Helper::Controller::Scaffold. - use strict; - use base 'Catalyst::Model::CDBI::CRUD'; - - __PACKAGE__->config( - dsn => 'dbi:SQLite:/tmp/myapp.db', - relationships => 1 - ); - - 1; - - # lib/MyApp.pm - package MyApp; +Just install this module, and to scaffold a Class::DBI Model class, do the following: - use Catalyst 'FormValidator'; +./script/myapp_create controller Scaffold Scaffolding - __PACKAGE__->config( - name => 'My Application', - root => '/home/joeuser/myapp/root' - ); - - sub my_table : Global { - my ( $self, $c ) = @_; - $c->form( optional => [ MyApp::Model::CDBI::Table->columns ] ); - $c->forward('MyApp::Model::CDBI::Table'); - } - - 1; -Modify the C<$c-Eform()> parameters to match your needs, and don't -forget to copy the templates into the template root. Can't find the -templates? They were in the CRUD model distribution, so you can do -B from the CPAN shell to find them. -Other Scaffolding modules are in development at the time of writing. =head2 File uploads