On Wed, Jul 30, 2008 at 8:38 AM, Moritz Onken <[EMAIL PROTECTED]> 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

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

Reply via email to