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}

but I was wrong.

...

So ... how do I get myvar into myapp as a global configuration variable? Or is this generally discouraged as a practice, and another better one suggested?

Advice/clues/pointers (especially to fine manuals) welcome.  Thanks!

--
joe landman
[EMAIL PROTECTED]

_______________________________________________
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