Showing posts with label codeigniter. Show all posts
Showing posts with label codeigniter. Show all posts

Thursday, October 13, 2011

How to get the URL arguments in Codeigniter

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);