【发布时间】:2014-04-18 11:51:30
【问题描述】:
所以,当我尝试获取 thsi URL:http://example.com/first-uri/6 的 URI 字符串(echo $this->uri->segment(2);) 时,我得到“6”,所以那里没有问题,但同样的请求对以下 URL(具有参数)进行处理:http://example.com/first-uri?parameter1=x¶meter2=y/6 确实返回任何内容。
有什么想法吗?
谢谢
【问题讨论】:
-
使用 $this->input->get('parameter1') .
-
您是否将 $config['enable_query_strings'] 更改为 true
-
是的!这就是问题所在。谢谢
标签: php codeigniter uri