예제 #1
0
 public static function init($userConfig)
 {
     //        spl_autoload_register('EZPHP\EZPHP::autoLoad');
     spl_autoload_register(array('EZPHP\\EZPHP', 'autoLoad'));
     set_error_handler('EZPHP\\EZPHP::appError');
     set_exception_handler('EZPHP\\EZPHP::appException');
     register_shutdown_function('EZPHP\\EZPHP::appEnd');
     //trigger_error("what ?",E_USER_ERROR);
     //throw new EZException('111');
     //obstart
     global $defaultConfig;
     global $config;
     $config = array_merge($defaultConfig, $userConfig);
     dev::start();
     app::run($config);
     dev::end();
     EZPHP::$success_end = true;
 }