On Nov 5, 2007 12:37 PM, Joe Landman <[EMAIL PROTECTED]>
wrote:
> Hi folks:
>
> This should be an easy one. I read and read and read. The manual is
> fine, but my reading skills may be in doubt.
>
> This is what I want to do. I want to set a simple variable named
> myvar in myapp.yml. Then I want to pick it up later on.
>
> So far so good, I have
>
> myvar: blahblahblah
>
> in myapp.yml at the top of my application tree (in the same directory as
> lib, script, root, ...)
>
> Now, in one of my controllers, I want to get access myvar. I thought I
> can get at it like this:
>
> $c->config->{myvar}
> <http://dev.catalyst.perl.org/>
Looks right, did you load the ConfigLoader plugin (
http://search.cpan.org/~bricas/Catalyst-Plugin-ConfigLoader-0.18/lib/Catalyst/Plugin/ConfigLoader.pm)
?
_______________________________________________
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/