public static function init() { $path = $_SERVER['PATH_INFO']; $route = trim($path, '/'); $route_arr = explode('/', $route); self::$class = $route_arr[0]; self::$function = $route_arr[1]; }