[Catalyst] Configuring a Controller from the config file
Moritz Onken
onken at houseofdesign.de
Wed Jul 30 12:38:00 BST 2008
Hi,
I tried to set some config options for a controller with the config
file.
YAML-code:
---
name: MyApp
Controller::Root:
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-
>config?
What am I missing?
moritz
More information about the Catalyst
mailing list