Hello,
I'm tying to get the last URI segment in CI, however I don't know what the number for it will be, as parameters (an integer) will be appended as the user clicks links within the page. These are then used in a controller to pull relevant database records into the page via ajax.
How can I tell CI to get the last segment?
Something like:
$record_num = $this->uri->segment($last);
Thanks!