【发布时间】:2015-09-03 13:17:00
【问题描述】:
我的 codeigniter routes.php 文件中有以下内容:
$route['default_controller'] = "home";
$route['404_override'] = '';
$route['(:any)'] = "page";
$route['about'] = "about";
$route['content/edit'] = "content/edit";
$route['content'] = "content";
localhost/anything 像它应该的那样路由到页面控制器。 localhost/about 和 localhost/content 路由到 about 控制器和内容控制器,就像它们应该的那样。但是 localhost/content/edit 路由到页面控制器。我需要它路由到我的内容控制器中的编辑功能。我该如何做到这一点? 谢谢。
【问题讨论】:
标签: codeigniter url routes