PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of M.C. van der Most van Spijk  >  Config  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example of use
Class: Config
Get config values from INI files XPath style
Author: By
Last change:
Date: 7 years ago
Size: 191 bytes


Class file image Download
// start config, dir is the directory where the ini-files are found
$config = Config::singleton($dir);

// retrieve setting
$setting = Config::getSetting('site/display_errors')