Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI default_controller setting #30

Open
Lewis1316 opened this issue Sep 7, 2015 · 1 comment
Open

CI default_controller setting #30

Lewis1316 opened this issue Sep 7, 2015 · 1 comment

Comments

@Lewis1316
Copy link

$route['default_controller'] = 'index/home'; this index is a folder and the home is a controller in it, but when I ran the code, the page showed "The page you requested was not found." why doesn't default_controller work?

@songxk
Copy link
Member

songxk commented Sep 9, 2015

该设置项是不支持传入文件夹名字的,比如你设置的是$route['default_controller'] = 'index/home';含义就是执行index控制器中的home方法
参考代码/system/core/Router.php 中的_set_default_controller 方法

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants