yihongg001 发表于 2015-6-17 11:50:49

default_controller没法指定子文件夹中的文件?

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为默认?

谢谢!

Closer 发表于 2015-6-17 13:01:34

請參閱 CI 社區 - 關於 3.0 的預設路由

yihongg001 发表于 2015-6-17 14:35:15

按此更新后成功,3ks!
页: [1]
查看完整版本: default_controller没法指定子文件夹中的文件?