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

[已解决] 关于routes.php的问题

我在routes.php文件中加了$route['shop-(:num)'] = "home/shop/$1";使http://localhost/ci/shop-35映射到http://localhost/ci/home/shop/35,用$this->uri->segment(3)取不到35,怎样才能取到啊?
wwwwwwwwwwwwwwww

改用 $this->uri->rsegment(3);

仔细参考 http://codeigniter.org.cn/user_guide/libraries/uri.html
QQ: 49489680
MSN: zhaochang_tj AT hotmail DOT com
搜索: http://search.codeigniter.org.cn

TOP

回复 2# Hex
恩 解决了 谢谢啦
wwwwwwwwwwwwwwww

TOP

ci太牛啦!!!
wwwwwwwwwwwwwwww

TOP

返回列表