文件。 现在,我加载模块/名称空间路由时;我的模块路由没有确定,因为$defaultNamespace现在在另一个文件中设置。 我可以处理这个?
I已将路由路径添加到Routing.php中的$ RoutesFiles参数
public array $routeFiles = [
APPPATH . 'Config/Routes.php',
'BudgetingModule\Config/Routes.php',
'FeeModule\Config/Routes.php',
];
我怀疑您的路由包含错误。您目前有:
'BudgetingModule\Config/Routes.php',
'FeeModule\Config/Routes.php',
'/var/www/html/path_to/BudgetingModule/Config/Routes.php',
'/var/www/html/path_to/FeeModule/Config/Routes.php',
注意,您还在同一条可能会混淆事物的路径上有前锋的斜线和后斜线。另外,如果您的模块位于
APPPATH
位置,则可以替换
/var/www/html/path
位。