X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FCatalyst%2FHelper.pm;h=eacfb69aa45507b1f1cd502605786fa234eca2a2;hb=4d88618969117a90f2f34ae5481ba06d7b405061;hp=e1aa3eca7bd89c0423958dd47ba833d6fb3a99da;hpb=c82bce98625d13b20045499ddbb13b813a788ff3;p=catagits%2FCatalyst-Runtime.git diff --git a/lib/Catalyst/Helper.pm b/lib/Catalyst/Helper.pm index e1aa3ec..eacfb69 100644 --- a/lib/Catalyst/Helper.pm +++ b/lib/Catalyst/Helper.pm @@ -501,7 +501,7 @@ So when you call C, create would try to execute Catalyst::Helper::View::TT->mk_compclass and Catalyst::Helper::View::TT->mk_comptest. -See L and L for +See L and L for examples. All helper classes should be under one of the following namespaces. @@ -544,14 +544,21 @@ use warnings; # Set flags and add plugins for the application # # -Debug: activates the debug mode for very useful log messages +# ConfigLoader: will load the configuration from a YAML file in the +# application's home directory # Static::Simple: will serve static files from the application's root -# directory +# directory # use Catalyst qw/-Debug ConfigLoader Static::Simple/; our $VERSION = '0.01'; # +# Configure the application +# +__PACKAGE__->config( name => '[% name %]' ); + +# # Start the application # __PACKAGE__->setup; @@ -1029,8 +1036,8 @@ pod2usage(1) unless $helper->mk_component( '[% name %]', @ARGV ); [% appprefix %]_create.pl view MyView TT [% appprefix %]_create.pl view TT TT [% appprefix %]_create.pl model My::Model - [% appprefix %]_create.pl model SomeDB CDBI dbi:SQLite:/tmp/my.db - [% appprefix %]_create.pl model AnotherDB CDBI dbi:Pg:dbname=foo root 4321 + [% appprefix %]_create.pl model SomeDB DBIC::SchemaLoader dbi:SQLite:/tmp/my.db + [% appprefix %]_create.pl model AnotherDB DBIC::SchemaLoader dbi:Pg:dbname=foo root 4321 See also: perldoc Catalyst::Manual