Jifty::ConfigThe configuration handler for Jifty | |
Download |
Jifty::Config Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Alex Vandiver
- Publisher web site:
- http://search.cpan.org/~alexmv/
Jifty::Config Tags
Jifty::Config Description
The configuration handler for Jifty Jifty::Config is the configuration handler for Jifty.SYNOPSIS # in your application my $app_name = Jifty->config->framework('ApplicationName'); my $frobber = Jifty->config->app('PreferredFrobnicator'); # sub classing package MyApp::Config; use base 'Jifty::Config'; sub post_load { my $self = shift; my $stash = $self->stash; # full config in a hash ... do something with options ... $self->stash( $stash ); # save config } 1;This class is automatically loaded during Jifty startup. It contains the configuration information loaded from the config.yml file (generally stored in the etc directory of your application, but see "load" for the details). This configuration file is stored in YAML format.This configuration file contains two major sections named "framework" and "application". The framework section contains Jifty-specific configuration options and the application section contains whatever configuration options you want to use with your application. (I.e., if there's any configuration information your application needs to know at startup, this is a good place to put it.)Usually you don't need to know anything about this class except app and framework methods and about various config files and order in which they are loaded what described in "load". Requirements: · Perl
Jifty::Config Related Software