Welcome Guest, Not a member yet? Register   Sign In
Ajax doesn't work after using _remap
#2

(This post was last modified: 02-04-2021, 04:03 PM by InsiteFX.)

You do not need __remap

This should do it for you.

PHP Code:
$uri = (string)$this->request->uri;

echo 
$this->uri->getSegments();       // ['path', 'to', 'page']
echo $this->uri->getSegment(1);       // 'path'
echo $this->uri->getTotalSegments();  // 3 

Try that.

What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
RE: Ajax doesn't work after using _remap - by InsiteFX - 02-04-2021, 04:02 PM



Theme © iAndrew 2016 - Forum software by © MyBB