コード例 #1
0
 /**
  *    run bootstrap
  *
  * @param boolean $debug
  */
 public static function run($debug = FALSE)
 {
     self::$debug = $debug;
     // register bootstrap clas loader
     if (!spl_autoload_register('Charcoal_Bootstrap::loadClass', false)) {
         echo "registering bootstrap class loader failed." . eol();
         exit;
     }
     // register system handlers
     register_shutdown_function('Charcoal_Bootstrap::onShutdown');
     set_error_handler("Charcoal_Bootstrap::onUnhandledError");
     set_exception_handler("Charcoal_Bootstrap::onUnhandledException");
 }