Catalyst base controller example
package MyApp::BaseController::Hello;
use base 'Catalyst::Controller';
sub hello : Local { }
package MyApp::Controller::A;
use base 'MyApp::BaseController::Hello';
package MyApp::Controller::B;
use base 'MyApp::BaseController::Hello';
- Actions apply to subclass
- So you get /a/hello and /b/hello