site_url=[::1],什么问题导致的?
第一次使用ci参考文档进展到这一步
http://codeigniter.org.cn/user_guide/tutorial/news_section.html
运行之后发现
<p><a href="<?php echo site_url('news/'.$news_item['slug']); ?>">View article</a></p>
<a href="http://[::1]/index.php/news/hello slug!">View article</a>
site_url=[::1]是什么原因导致的。
看到之前有篇帖子也在问这个问题,没有人解决吗?
http://codeigniter.org.cn/forums/thread-22666-1-1.html
必须设置 config/config.php 里的 site_url 配置项,配置项内容为 http://你的域名.com/
页:
[1]