Example #1
0
 protected static function _init()
 {
     if (null === self::$_configuration) {
         if (!is_readable(APPLICATION_CONF)) {
             throw new Exception('This applicaiton has not been properly installed. Unable to access configuration file.');
         }
         self::$_configuration = simplexml_load_file(APPLICATION_CONF);
         if (!self::$_configuration) {
             throw new Exception('This applicaiton has not been properly installed. The configuration file is malformed.');
         }
     }
 }