[Catalyst] RE: Configuration Approach

Dami Laurent (PJ) laurent.dami at justice.ge.ch
Wed Oct 26 09:12:52 CEST 2005


Hi Andrew,

Actually the places where I used AppConfig are not (yet!) on Catalyst.
However what I will most probably do when I port them to Catalyst is to 
call AppConfig from MyApp->setup(), and insert the results
into $c->config(...) so that config data becomes available to all
subsequent requests.



> Message: 8
> Date: Tue, 25 Oct 2005 13:04:33 -0400
> From: Andrew Libby <andrew.libby at gmail.com>
> Subject: Re: [Catalyst] Configuration Approach
> To: The elegant MVC web framework <catalyst at lists.rawmode.org>
> Message-ID: <1130259873.10820.19.camel at localhost>
> Content-Type: text/plain
> 
> 
> This module looks very interesting, but does not seem to 
> integrate w/ Catalyst as organically as the Config::YAML.
> What's your approach to using it?  Do you process a 
> onfiguration in your main config() method, or do you 
> do it in setup?  Do you manually retrieve this configuration
> in each of your M/V/C classes, or do you integrate into
> the main config hash somehow?
> 
> Thanks.
> 
> Andy
> 
> 
> On Tue, 2005-10-25 at 18:18 +0200, Dami Laurent (PJ) wrote:
> > Le lundi 24 octobre 2005, a 07 heures 52, Corey ecrivait :
> > > On Monday 24 October 2005 07:34 pm, Andrew Libby wrote:
> > > > I'm learning Catalyst, and have found that I'm using a number of
> > > > plugins, and a variety of configuraiton parameters.  It seems
> > > > that managing app configurations can be quite cumbersome
> > My preferred module for application configuration is 
> AppConfig by Andy
> > Wardley. It comes with the Template Toolkit and has a very 
> clever API
> > (config parameters from a flat file, from command-line 
> args, from CGI
> > args) and supports interpolation of variables.
> > 
> -- 
> Andrew Libby
> Tangeis
> Phoenixville PA, USA
> 
> 
> 



More information about the Catalyst mailing list