[Catalyst] In search of a clue ... how do I access
_PACKAGE_->config values
, or more specifically, values put into myapp.yml ?
Joe Landman
landman at scalableinformatics.com
Mon Nov 5 17:37:27 GMT 2007
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
landman at scalableinformatics.com
More information about the Catalyst
mailing list