Hi
Here is the way to get the URL Arguments in CodeIgniter.
for ex:- url is http://localhost/app_name/controller_name/method_name/argument
In the above URL If we want to get the argument means we can get by using the following code.
$arg = $this->uri->segment(3);
for ex:- url is http://localhost/app_name/controller_name/method_name/argument
In the above URL If we want to get the argument means we can get by using the following code.
$arg = $this->uri->segment(3);