[Catalyst] running catalyst through mod_perl
Matt S Trout
dbix-class at trout.me.uk
Tue May 15 20:17:27 GMT 2007
On Tue, May 15, 2007 at 01:22:25PM -0400, John Goulah wrote:
> Sorry for the ignorance, but the docs are somewhat lacking good examples.
> It doesn't seem I can use the $c object in the main app file
> (lib/Appname.pm). I've tried stuff like __path_to_(myconfig.yml)__ and that
> throws compile errors. So how would I change this statement to do what I
> need:
>
> __PACKAGE__->config(
> name => 'Registration',
>
> validator => {
> messages => "messages.yml",
> },
> );
cat - >registration.conf
name Registration
<validator>
messages __path_to(messages.yml)__
</validator>
^D
or similar for YAML, but I think in apache-style due to too much web dev :)
(ConfigLoader will find registration.conf for you)
--
Matt S Trout Need help with your Catalyst or DBIx::Class project?
Technical Director Want a managed development or deployment platform?
Shadowcat Systems Ltd. Contact mst (at) shadowcatsystems.co.uk for a quote
http://chainsawblues.vox.com/ http://www.shadowcatsystems.co.uk/
More information about the Catalyst
mailing list