[Catalyst] Configuration process

Alejandro Imass alejandro.imass at gmail.com
Thu Jul 2 15:06:46 GMT 2009


Why don't you just use the standard yml config file?

On Thu, Jul 2, 2009 at 1:00 PM, Frederic Demians<frederic at demians.fr> wrote:
> Hello,
>
> It must be a newbie question...
>
> I have a simple application, let say MyApp. In lib/MyApp.pm, I ask for
> standard config loading with:
>
>  Catalyst qw/  ConfigLoader /
>
> I want to add config variables from another source than myapp.conf. But in
> order to construct those variables I need to access configuration variables
> loaded by ConfigLoader. But those variables are not yet loaded when I access
> them:
>
> myapp.conf contains:
>
>  filepath /path/to/config.xml
>
> And in MyApp.pm, I have:
>
> __PACKAGE__->config(
>    speciolconf => XMLin( __PACKAGE->config->{filepath}
> );
>
> This issue is that __PACKAGE->config->{filepath} is not initialized.
>
> How can I do?
>
> Thanks.
> --
> Frédéric
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>



More information about the Catalyst mailing list