Since you've got debug enabled, check your output for a line that looks like:

[debug] Loaded Config ".../myapp.yml"

If you don't see it then the problem is that C:P:ConfigLoader isn't finding your file. When you build your Catalyst project, catalyst.pl will leave a .yml file in the root of the project directory... it uses all lower case for the "myapp" part, even if you used upper-case in your project name. Try running the built-in server, it should be able to find that file.

You'll see that message even if there's an error in the config file. YAML is very sensitive about whitespace. Try running the file through ysh, the YAML shell, to check for errors. If your project reports the file being loaded but you still can't see things from it then that's probably what's going on.

Good luck,
        - john romkey
        http://www.romkey.com/

On May 12, 2007, at 10:05 AM, Johannes Rumpf wrote:

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

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


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

Reply via email to