[Catalyst] Configuring a Controller from the config file

Moritz Onken onken at houseofdesign.de
Wed Jul 30 12:38:00 BST 2008


I tried to set some config options for a controller with the config  


name: MyApp

   key: value

I'm using ConfigLoader and the debug shows that it successfully loaded  
the yaml file.
In a method in my Root controller I tried to access those config  
options via $self->config.
I had no luck. $c->config shows the hole config. I could access the  
config options via
$c->config->{Controller::Root} but shouldn't it avaiable via $self- 
What am I missing?


More information about the Catalyst mailing list