On 2005-09-30, Michael Graham <[EMAIL PROTECTED]> wrote:
> I don't know about the other CGI::Application plugins, but
> C::A::P::Config::Context does this for you already. It provides a class
> method for getting at configuration data:
>
> my $config =
> CGI::Application::Plugin::Config::Context->get_current_context;
Is there a caveat needed here about unexpected results under mod_perl ?
Or perhaps just that you need to be sure to use named parameters for
each unique config that will be loaded at the same time:
my $config =
CGI::Application::Plugin::Config::Context->get_current_context('project_name');
This is a neat idea, and one I may emulate in ::Plugin::ConfigAuto;
Mark
--
. . . . . . . . . . . . . . . . . . . . . . . . . . .
Mark Stosberg Principal Developer
[EMAIL PROTECTED] Summersault, LLC
765-939-9301 ext 202 database driven websites
. . . . . http://www.summersault.com/ . . . . . . . .
---------------------------------------------------------------------
Web Archive: http://www.mail-archive.com/[email protected]/
http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]