Re: [cgiapp] PARAMS and CAP::ConfigAuto (Solved)

2006-02-20 Thread Jonathan Mangin
Obvious to nearly everyone, I'd guess. If using this form in the instance script: > > > my $webapp = App1->new(PARAMS => {cfg_file => 'config/app1.conf'}); One must do approx. this in application module: $self->cfg_file($self->param('cfg_file')); --

Re: [cgiapp] PARAMS and CAP::ConfigAuto

2006-02-19 Thread Jonathan Mangin
> > Trying to follow the docs in CAP::ConfigAuto moving cfg_file > > definition to the instance script: > > > > #!/usr/bin/perl -wT > > use lib qw(.); > > use App1; > > my $webapp = App1->new(PARAMS => {cfg_file => 'config/app1.conf'}); > > $webapp->run(); > > > > And in Base.pm: > > > > use CGI

RE: [cgiapp] PARAMS and CAP::ConfigAuto

2006-02-19 Thread Dan Horne
> -Original Message- > From: Jonathan Mangin > Sent: Monday, 20 February 2006 5:21 a.m. > To: cgiapp@lists.erlbaum.net > Subject: [cgiapp] PARAMS and CAP::ConfigAuto > > Trying to follow the docs in CAP::ConfigAuto moving cfg_file > definition to the instance

[cgiapp] PARAMS and CAP::ConfigAuto

2006-02-19 Thread Jonathan Mangin
Trying to follow the docs in CAP::ConfigAuto moving cfg_file definition to the instance script: #!/usr/bin/perl -wT use lib qw(.); use App1; my $webapp = App1->new(PARAMS => {cfg_file => 'config/app1.conf'}); $webapp->run(); And in Base.pm: use CGI::Application::Plugin::ConfigAuto (qw/cfg cfg_fi