Help for this page

Select Code to Download


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