I want to get /1 from this url but i can't.
Here /1 is the page no
Try like this
$parameter = $this->input->get('nrs_address');
OR
$parameter = $_GET['nrs_address'];
you can try this one
$urldata = $this->input->get();
you will get all url data on $urldata variable in associative array (key-value pair) form. and you can use it like this one.
$urldata['nrs_name']
if you have to pass the value you should enter url like this
localhost/yoururl/index.php/abc_controller/70
and in controller function you can get like this:
public function index( $id = NULL ) {
echo $id;
}
Reference:
Apply this code.
$nrs_address= $_GET['nrs_address'];
echo $nrs_address;