I want to configure all the actions in my controller using my app's config file. According to Catalyst::Controller I can do this in the controller itself:
__PACKAGE__->config(
action => {
'*' => { Chained => 'base', Args => 0 },
},
);
So I tried this in my config:
<controller Foo>
<action "*">
Chained base
Args 0
</action>
</controller>
But I get this error on startup:
Couldn't load class (MyApp) because: Action "*" is not available from
controller MyApp::Controller::Foo at /usr/local/share/perl/5.10.1/Catalyst/
Controller.pm line 193
It does the same without the quotes around the asterisk. How should I do this?