CodeIgniter 中英文搜索引擎:
返回列表 发帖

分页中的奇怪问题

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搞掉??

site_url只会去掉首尾的所有斜线“/”
lz用的是哪个版本的CI?
要测试的话, $pageConfig['base_url'] = 'http://localhost/index.php/news/newsList/';
看看会不会去掉t

TOP

t 丢掉了,不太可能吧,源码里只有去掉斜杠的代码呀。。。。
QQ: 49489680
MSN: zhaochang_tj AT hotmail DOT com
搜索: http://search.codeigniter.org.cn

TOP

返回列表