CodeIgniter: How to get Controller, Action, URL information

前端 未结 11 1225
死守一世寂寞
死守一世寂寞 2020-12-07 09:21

I have these URLs:

  • http://backend.domain.com/system/setting/edit/12
  • http://backend.domain.com/product/edit/1

How to get controller nam

11条回答
  •  遥遥无期
    2020-12-07 09:58

    If you using $this->uri->segment , if urls rewriting rules change, segments name matching will be lost.

提交回复
热议问题