[Catalyst] How to set config of Controller in YAML file?

Hideo Kimura hide at hide-k.net
Thu Nov 30 20:18:17 GMT 2006


Hi,

Does anybody knows how to set config of each Controllers in YAML file?
Before I can do it following way with ConfigLoader, but it doesn't work now.

in yml file
Controller::Foo:
  foo: bar

in controller
sub default : Private {
    my ($self, $c) = @_;

    my $config = $self->config;
    ...
}

Thanks

--
hide





More information about the Catalyst mailing list