4.01 Tue Mar 01 10:00:00 2005
- improved documentation
+ - documentation fixes (Johan Lindstrom)
4.00 Sun Feb 27 22:00:00 2005
- more verbose debug messages, especially for forward()
application-name has to be a valid Perl module name and can include ::
Examples:
- catalyst My::App
- catalyst MyApp
+ perl /path/to/catalyst My::App
+ perl /path/to/catalyst MyApp
See also:
perldoc Catalyst::Manual
=head1 THANK YOU
Danijel Milicevic, David Naughton, Gary Ashton Jones, Jesse Sheidlower,
-Marcus Ramberg and all the others who've helped.
+Johan Lindstrom, Marcus Ramberg and all the others who've helped.
=head1 LICENSE
-help display this help and exits
Examples:
- test http://localhost/some_action
- test /some_action
+ perl test http://localhost/some_action
+ perl test /some_action
See also:
perldoc Catalyst::Manual
-help display this help and exits
Examples:
- create controller My::Controller
- create view My::View
- create view MyView TT
- create view TT TT
- create model My::Model
- create model SomeDB CDBI dbi:SQLite:/tmp/my.db
- create model AnotherDB CDBI dbi:Pg:dbname=foo root 4321
+ perl create controller My::Controller
+ perl create view My::View
+ perl create view MyView TT
+ perl create view TT TT
+ perl create model My::Model
+ perl create model SomeDB CDBI dbi:SQLite:/tmp/my.db
+ perl create model AnotherDB CDBI dbi:Pg:dbname=foo root 4321
See also:
perldoc Catalyst::Manual
=head3 Setup
- $ catalyst My::App
+ $ perl /path/to/catalyst My::App
$ cd My-App
- $ bin/create controller My::Controller
+ $ perl bin/create controller My::Controller
=head3 Run
- $ bin/server
+ $ perl bin/server
Now visit these locations with your favorite browser or user agent to see Catalyst in action:
=item * Literal
- $c->action( 'foo/bar' => sub { } );
+ MyApp->action( 'foo/bar' => sub { } );
Matches only http://localhost:3000/foo/bar.
=item * Regex
- $c->action( '^/foo(\d+)/bar(\d+)$/' => sub { } );
+ MyApp->action( '^/foo(\d+)/bar(\d+)$/' => sub { } );
Matches any URL that matches the pattern in the action key, e.g. http://localhost:3000/foo23/bar42. The pattern must be enclosed with forward slashes, i.e. '/$pattern/'.
=item * Namespace-Prefixed
package MyApp::Controller::My::Controller;
- $c->action( '?foo' => sub { } );
+ MyApp->action( '?foo' => sub { } );
Matches http://localhost:3000/my_controller/foo. The action key must be prefixed with '?'.
=item * Private
- $c->action( '!foo' => sub { } );
+ MyApp->action( '!foo' => sub { } );
Matches no URL, and cannot be executed by requesting a URL that corresponds to the action key. Private actions can be executed only inside a Catalyst application, by calling the C<forward> method: