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/ 

_______________________________________________
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