如何从codeigniter中的url获取数据

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:

https://www.codeigniter.com/userguide3/libraries/input.html?highlight=get%20url#using-post-get-cookie-or-server-data

Apply this code.

$nrs_address= $_GET['nrs_address'];
echo $nrs_address;