PHP CI框架怎么传参数和去参数值?

2024-11-15 21:25:25
推荐回答(1个)
回答1:

例如:document/index.php/send/sendlist/index2/1143
获取:$this->uri->segment(n) 获取第n个参数

1. send
2.sendlist
3.index2
4.1143
$this->uri->segment(4) 即获取到id的值了