CodeIgniter - Get Last URI Segment
This should work:
$last = $this->uri->total_segments();
$record_num = $this->uri->segment($last);
$record_num = end($this->uri->segment_array());
This should work:
$last = $this->uri->total_segments();
$record_num = $this->uri->segment($last);
$record_num = end($this->uri->segment_array());