Help for this page

Select Code to Download


  1. or download this
    # The configuration index is in Config::General format.
    # We store it in /etc/gantry.conf (the default),
    ...
        ConfigureVia FlatFile Config::Tiny  /etc/gantry.d/phone_list.conf
        ConfigureVia HTTP Config::General  https://confserver.example.com/
    +dbconf
    </instance>
    
  2. or download this
        <Location /budget_sales>
            #...
            PerlSetVar GantryConfInstance budget_sales
        </Location>
    
  3. or download this
        my $conf = Gantry::Conf->retrieve( {
          instance => $r->dir_config( 'GantryConfInstance' )
        });
    
  4. or download this
        my $conf = Gantry::Conf->retrieve(
            {
    ...
              config_file => '/etc/gantry.d/standard.conf',
            }
        );
    
  5. or download this
        use Getopt::Long;
        my $instance = 'budget_default';
    ...
        my $conf = Gantry::Conf->retrieve(
            { instance => $instance }
        );