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

_______________________________________________
List: Catalyst@lists.scsys.co.uk
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

Reply via email to