package MyApp;
use strict;
- use Catalyst qw/-Debug/; # Add other plugins here, e.g.
- # for session support
-
+ use parent qw/Catalyst/;
+ __PACKAGE__->setup(qw/-Debug ConfigLoader Static::Simple/);
+ # note you can still use use Catalyst qw/@plugins/ instead of the
+ # above two lines
MyApp->config(
name => 'My Application',
Called when no other action matches. Could be used, for example, for
displaying a generic frontpage for the main app, or an error page for
-individual controllers.
+individual controllers. B<Note>: in older Catalyst applications you
+will see C<default : Private> which is roughly speaking equivalent.
=item * B<index : Path : Args (0) >
as a static entry point to a controller, e.g. to have a static welcome
page. Note that it's also weighted higher than Path. Actually the sub
name C<index> can be called anything you want. The sub attributes are
-what determines the behaviour of the action.
+what determines the behaviour of the action. B<Note>: in older
+Catalyst applications, you will see C<index : Private> used, which is
+roughly speaking equivalent.
=item * B<begin : Private>