摘要: 在使用CI框架的使用经常碰到跳转和路径方面的问题,site_url()和base_url()很容易混淆,下面来说说他们的区别!假如你config文件里面的base_url和index_page是这样定义的:config['base_url'] = "http://domain.com/";config['index_page'] = "index.php";那么你若使用site_url("news/php/2");则实际url为http://domain.com/index.php/news/php/2 阅读全文
posted @ 2013-03-12 14:21 WingPig99 阅读(459) 评论(0) 推荐(0) 编辑