[Catalyst] Howto use ConfigLoader?

Johannes Rumpf jrspam at web-dreamer.de
Sat May 12 15:05:55 GMT 2007


Hey Geeks,

i'm starting actually with catalyst and try to use the ConfigLoader. 
Actually i'm to dump to get something loaded or accessed. Maybe someone 
arround can give me a helping hand.

Thats what i've done:

package myapp;
use Catalyst qw/-Debug ConfigLoader /;

and put in the base-dir the following file, more or less exact as in the 
Catalyst tutorial.

myapp.yml

Basicaly while starting catalyst quoting

debug] Loaded plugins:
.----------------------------------------------------------------------------.
| Catalyst::Plugin::ConfigLoader  0.14      |
'----------------------------------------------------------------------------'

But no file afterwards.

I'm a bit stucked in the middle.

Where to put that file
/
/lib
/src
??

Howto find out if my Config is loaded? Because $c->config->{my_test} 
result in empty value?


Any advice?

Thanks and cheers,
  Johannes



More information about the Catalyst mailing list