用户
 找回密码
 入住 CI 中国社区
搜索
查看: 2649|回复: 2
收起左侧

分页中的奇怪问题

[复制链接]
发表于 2009-7-3 06:30:06 | 显示全部楼层 |阅读模式
pageconfig设置如下
  $pageConfig['base_url'] = site_url('news/newsList/');
   $pageConfig['total_rows'] = $this->count_all();
   $pageConfig['per_page'] = 5;
   $pageConfig['uri_segment'] = 3;
   $pageConfig['full_tag_open'] = '';
   $pageConfig['full_tag_close'] = '';
   return $pageConfig;
在页码连接上,突然显示成了 http://localhost/index.php/news/newsLis/2
如果设置成$pageConfig['base_url'] = site_url('news/newsLists/');
则页码连接正常显示为 http://localhost/index.php/news/newsLists/2
会自动把末尾的t给弄掉?什么意思啊?????
难道是site_url搞掉??
发表于 2009-7-3 06:45:09 | 显示全部楼层
site_url只会去掉首尾的所有斜线“/”
lz用的是哪个版本的CI?
要测试的话, $pageConfig['base_url'] = 'http://localhost/index.php/news/newsList/';
看看会不会去掉t
发表于 2009-7-3 10:13:11 | 显示全部楼层
t 丢掉了,不太可能吧,源码里只有去掉斜杠的代码呀。。。。

本版积分规则