• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
how to get string before the second slash as a parameter??

#2
Look at the URI library: https://www.codeigniter.com/user_guide/l...s/uri.html

This should do what you want:


PHP Code:
$segment $this->uri->segment(1); 
Reply


Messages In This Thread
RE: how to get string before the second slash as a parameter?? - by tomdchi - 04-18-2018, 12:50 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.