Example #1
0
 public static function run($config)
 {
     // load the config
     self::$config = $config;
     //initialize the basic variables
     self::init();
     //parse route
     $router = new Core_Route($config['system']['route']['url_type']);
     $router_params = $router->parse_route();
     //diatribute the request
     self::route_distribute($router_params, $config);
 }