How to get value from URL in CodeIgniter?

后端 未结 1 867
灰色年华
灰色年华 2021-01-29 06:40

I had a url http://localhost/tasty/index.php/admin/edititems?id=20. I have to get the value 20.

相关标签:
1条回答
  • 2021-01-29 07:34

    You can do this:

    $this->input->get('id', TRUE);
    

    I'd recommend checking out the docs here: http://www.codeigniter.com/user_guide/libraries/input.html

    0 讨论(0)
提交回复
热议问题