Code Igniter - Get Last URI SegmentSep 30, 2010
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?
$record_num = $this->uri->segment($last);