
frederic at demians
Jul 1, 2009, 10:30 AM
Views: 615
Permalink
|
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/
|