- or download this
use Catalyst qw/ PLUGIN1 PLUGIN2 PLUGIN3 ... /;
- or download this
use Moose;
extends 'Catalyst::Controller'; # normal
# vs...
extends 'Catalyst::Controller::REST'; # changes behavior of things
- or download this
sub begin :SOME_MAGIC_ATTRIBUTE {}
- or download this
sub begin {
my ($self, $c)= @_;
if ($c->req->method ne 'GET') {
$c->res->code(404);
$c->detch;
}
- or download this
package MyApp::Controller::Root;
sub begin { ... }