• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can I check the uri segment?

#1
How can I check the uri segment?
In Ci3, it was possible to check

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

#2
The "CI4 way" is simialr ... https://codeigniter4.github.io/CodeIgnit...equest-url
Reply

#3
He asked, he answered.
$ uri = current_url (true);
$ class_open = $ uri-> getSegment (2);
Understood.
Reply

#4
try this.
$this->request->uri->getSegment(2);
Reply

#5
Most likely, this method will be best $data['current_uri'] = $this->uri->segment(1).
It helped me. Try it, then write.=))
Work out!
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


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