利用uri辅助函数
$id=$this->uri->segment(4);
其中segment(参数) 是表示你要截取获得第几个数据。
转载于:https://www.cnblogs.com/hgj123/p/3665793.html