package MyApp::Controller::App::Reporting; use Moose; use namespace::autoclean; BEGIN { extends 'Catalyst::Controller'; } sub reporting :Chained('chained_index') PathPart('reporting') Args(1) { my( $self, $c, $account_id ) = @_; $c->log->debug( "Generating report for account $account_if" ); }