CI3.0控制器下面建文件夹 访问一直404
CI3.0控制器下面建文件夹 访问一直404http://codeigniter.org.cn/user_guide/general/controllers.html
下面这一句实在读不懂
Each of your sub-directories may contain a default controller which will be called if the URL contains only the sub-directory. Simply put a controller in there that matches the name of your 'default_controller' as specified in your application/config/routes.php file. 貌似可以在controller下建立子目录,但是不能把子目录设成默认路由
http://codeigniter.org.cn/user_guide/general/routing.html
下面有句注解:
You can NOT use a directory as a part of this setting! 宠物帮帮 发表于 2016-4-19 00:05
有人解决了么?同问
默认控制器放在子文件夹下,没关系的,但是要注意控制器首字母要大写,Home.php,我的是$route['default_controller'] = 'index/home', 我刚学,今天遇到和你一样的问题啊,你的解决了吗 看路由文档 把文件夹的首字母改成大写试试 我也是这个问题,有没有大神来解决啊!!! 子文件夹 无法设置成默认路由 ,怎么办 我的文件夹是小写的字母,没有问题。另外会不会你设置了文件夹没有访问权限? 有人解决了么?同问
页:
[1]
2