|
发表于 2016-2-26 17:44:34
|
显示全部楼层
本帖最后由 billyhan 于 2016-2-26 17:46 编辑
http://localhost和localhost/index.php 在routes.php配置文件中,default_controller设置默认的控制器,默认的函数为index函数,所以http://localhost和localhost/index.php可以访问;你访问http://localhost/index.php/index 这个路径不对,应该是:http://localhost/index.php/index/函数名称;还有一种情况你的文件名和你php文件中的class类名不一致,类名要大写哈,比如文件叫index.php 文件里面是class Index{}
|
|