[Catalyst] Configuring a Controller from the config file
Brian Cassidy
brian.cassidy at gmail.com
Wed Jul 30 13:18:48 BST 2008
On Wed, Jul 30, 2008 at 8:38 AM, Moritz Onken <onken at houseofdesign.de> wrote:
> ---
> name: MyApp
>
> Controller::Root:
> key: value
>
> 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?
You should use either $self->{key} or do the following:
__PACKAGE__->mk_accessors( 'key );
and then you can use "$self->key" to get that information.
-Brian
More information about the Catalyst
mailing list