[Catalyst] controller subclass and :Local actions

Marcello Romani mromani at ottotecnica.com
Fri Jan 16 17:13:01 GMT 2009

     I have a controller base class that implements the usual crud 
actions (list, create, etc.), and I would like to override i.e. the list 
method in a subclass, but the subclass' list method doesn't seem to get 

In MyApp::Controller::Base:

use base qw( Catalyst::Controller );

sub list : Local {
     do stuff

In MyApp::Controller::CD:

use base qw( MyApp::Controller::Base );

sub list : Local {
     do other stuff

when I call /myapp/cd/list the base controller's list action gets called...

Can someone give me a hint ?

Thank you.

Marcello Romani

More information about the Catalyst mailing list