在本地运行新项目时,遇到了一个问题,当首页引入start.php 报了一个路由无效的错误,定位异常的时候,是由App::run()->send()
这句代码产生,请问大家如何解决这种问题?
报错信息 ` }
}
}
// 路由检测(根据路由定义返回不同的URL调度)
$result = Route::check($request, $path, $depr, $config['url_domain_deploy']);
$must = !is_null(self::$routeMust) ? self::$routeMust : $config['url_route_must'];
if ($must && false === $result) {
// 路由无效
throw new RouteNotFoundException();
}
}
if (false === $result) {
// 路由无效 解析模块/控制器/操作/参数... 支持控制器自动搜索
$result = Route::parseUrl($path, $depr, $config['controller_auto_search']);
}
return $result;
}
`
开启调试模式,把报错贴上来