Subject: | Options set via $self->config_init() are ignored |
I just began using this module and found out that it only works if I
initialize it like this:
my $app = WebApp->new(
PARAMS => {
config_dir => '/path/to/configfiles',
config_files => [ 'app.conf' ],
config_name => 'main',
config_params => {
## passed to Config::Any->load_files;
## see Config::Any for valid params
}
}
);
$app->run();
(from my init script). The documentation shows you can also do:
# Set config file and other options
$self->config_init(
config_dir => '/path/to/configfiles',
config_files => [ 'app.conf' ],
config_name => 'main',
config_params => {
## passed to Config::Any->load_files;
## see Config::Any for valid params
}
);
from within you CGI::Application based module, but it doesn't seem to
work at all - that is, parameters passed seems to be ignored.