namespace => ''
);
+ sub base : Chained('/') PathPart('') CaptureArgs(0) {
+ # do some setup for every request
+ # also provides a chain root for other controllers to use
+ }
+
1;
=head3 Individual controllers
__PACKAGE__->config(
model_name => 'IM', # This corresponds to the name of the MyApp::Model you created earlier
collection_name => 'Foo', # Name of one of the sources in your InterfaceModel
- action => { base => { Chained => '/base', PathPart => 'foo' } },
+ action => {
+ base => { Chained => '/base', # chain to the base action in the root controller
+ PathPart => 'foo' },
+ },
);
1;