CI的知识点

1. 超级对象中$this->uri 获取pathinfo中的值,$this->uri->segment(n)中的n表示第几个参数 如:/welcome/index/1  使用$this->uri->segment(3) 将获取到值1.   要注意的是区别传统的phthinfo传值方式。

   可以直接在控制器的方法中调用($id,$name);

原文地址:https://www.cnblogs.com/hubing/p/3546686.html