带目录的controller不能使用默认的controller
1.路由中默认的controlelr为welcome;2.在controller目录下新建一个目录为test;
3.在test目录下新建一个welcome.php
4.浏览http://www.domain/test 不能直接访问默认的controller,而必须要使用http://www.domani.com/test/welcome才能访问,这也算是BUG吧。。
本来就是这样设计的。
你路径里不写目录名,CI怎么能知道去哪里找你的控制器 路由中默认的welcome , 是此welcome ,非彼test/welcome 啊。
页:
[1]