public static function load() { if (empty(self::$_route_pc)) { self::$_route_pc = new RouterFactoryLib(); } return self::$_route_pc; }
public static function dispatch() { try { //config require ROOT_DIR . '/config/config.php'; //error set_error_handler(array('Blood', 'user_error_handler')); //autoload self::reg_autoload(array('Blood', 'autoload')); //setup NutrientLib::setup(); //router $router_pc = RouterFactoryLib::load(); $router_pc->dispatch(); } catch (Exception $e) { self::user_exception_handle($e); // echo 'Message: ' .$e->getMessage(); } }