我正在使用带有 HMVC 的 Codeigniter,我有一个名称与模块名称不同的子控制器
- modules
- manage
- controllers
- manage.php
- views
- dashboard.php
- properties
- controllers
- properties.php
- manage.php
- views
- properties.php
- manage.php
- projects
- controllers
- projects.php
- manage.php
- views
- projects.php
- manage.php
如果网址是这样的(仅索引有效)
sitename.com/manage/proprties
这工作正常,但如果我传递了一些参数,(错误 404)
sitename.com/manage/properties/add
或者
sitename.com/manage/properties/edit/10
我的路由是这样的
$route['manage/(:any)'] ="$1/manage";
$route['manage/(:any)/(:any)'] ="$1/manage/$2";
$route['manage/(:any)/(:any)/(:num)'] ="$1/manage/$2/$3";
如何使 URLsitename.com/manage/properties/edit/10
工作?