这类参数无法用 $thins->input->get() 获得吗?应该怎么获得呢?
2 回答

慕哥6287543
TA贡献1831条经验 获得超10个赞
controller中的 function方法 定义时候为 function yourfunction($num1,$num2){echo num1;echo num2;} 分别就是12 add了

宝慕林4294392
TA贡献2021条经验 获得超8个赞
$this->uri->segment($num);$num为你要取的第几个参数,比如:127.0.0.1/ci/index.php/welcome/index/page/2假如你想取地址里的‘2’,$num=4如果想取welcome,$num=1
- 2 回答
- 0 关注
- 272 浏览
添加回答
举报
0/150
提交
取消