Moritz Onken wrote:
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?

Here's some details:

http://search.cpan.org/dist/Catalyst-Manual/lib/Catalyst/Manual/ExtendingCatalyst.pod#Component_configuration

hth, rs

_______________________________________________
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