用户
 找回密码
 入住 CI 中国社区
搜索
查看: 1751|回复: 2
收起左侧

[版本 3.x] default_controller没法指定子文件夹中的文件?

[复制链接]
发表于 2015-6-17 11:50:49 | 显示全部楼层 |阅读模式
1) 3.0版本
2) 需要制定的controller路径:controllers/test/Test::index()
3) routes:
$route['(:any)'] = 'test/Test/index/$1';
$route['default_controller'] = 'test/Test/index';
4) 访问地址:
http://www.citest.com/index.php/something —— ok
http://www.citest.com/index.php/ —— 404

问题:请问如何指定子文件夹中的controller为默认?

谢谢!
发表于 2015-6-17 13:01:34 | 显示全部楼层
 楼主| 发表于 2015-6-17 14:35:15 | 显示全部楼层
按此更新后成功,3ks!

本版积分规则