Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Catalyst: Users
Configuration process
 

Index | Next | Previous | View Flat


frederic at demians

Jul 1, 2009, 10:30 AM


Views: 615
Permalink
Configuration process

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[at]lists.scsys.co.uk/
Dev site: http://dev.catalyst.perl.org/

Subject User Time
Configuration process frederic at demians Jul 1, 2009, 10:30 AM
    Re: Configuration process alejandro.imass at gmail Jul 2, 2009, 8:06 AM
    Re: Configuration process orasnita at gmail Jul 2, 2009, 12:17 PM
        Re: Configuration process alejandro.imass at gmail Jul 2, 2009, 1:06 PM
    Re: Configuration process marcus at nordaaker Jul 2, 2009, 1:46 PM
    Re: Configuration process bobtfish at bobtfish Jul 2, 2009, 3:03 PM
        Re: Configuration process alejandro.imass at gmail Jul 2, 2009, 3:58 PM

  Index | Next | Previous | View Flat
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.