NAME
CGI::Application::Plugin::Config::IniFiles - Add Config::IniFiles support to CGI::Application.
SYNOPSIS
use CGI::Application::Plugin::Config::IniFiles;
sub cgiapp_init ($) {
my ($self) = @_;
$self->config_file ("app.conf");
my $opt = $self->config->val ("main","option");
...
}
sub run_mode ($) {
my ($self) = @_;
my $opt = $self->config->val ("main","option");
...
}
DESCRIPTION
This module works as plugin for Config::IniFiles to be easily used inside CGI::Application module.
Module provides two calls: config_file() and config().
METHODS
config_file($file[,%options])-
This method reads file $file and create Config::IniFiles object. Optional arguments has same semantics as in "new" in Config::IniFiles.
config()-
Returns underlying Config::IniFiles object for direct access to its methods.
SEE ALSO
See CGI::Application, Config::IniFiles.
AUTHOR
Artur Penttinen, <artur+perl@niif.spb.su>
COPYRIGHT AND LICENSE
Copyright (C) 2007 by Artur Penttinen
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.