joan0106 发表于 2010-6-24 17:03:29

CIZ中的site_url

在控制器总加载helper("url")
site_url("article/articleconst/search");依次是控制器的文件夹,控制器名,控制器中的方法,打印的地址是http://localhost/CI/article/articleconst/searchall,实际的地址应该是http://localhost/CI/index.php/article/articleconst/searchall,为什么不起作用呢

Hex 发表于 2010-6-24 21:57:56

这说明你在 config.php 中去掉了 index.php
CI 默认是有的,肯定是你手动删除了。

joan0106 发表于 2010-6-25 08:35:37

还是Hex厉害,一看就知道是那的问题,本来想吧index.php去掉或隐藏的所以就删了index.php,谢谢!:victory:
页: [1]
查看完整版本: CIZ中的site_url