Home » CodeIgniter » CodeIgniter get URL parameters

CodeIgniter get URL parameters

How to fetch url parameters in the codeigniter.This is very simple.All data get as an array.

Example

http://www.mysite.com/index.php/deposit/11/3

index.php => 0

deposit => 1

11 => 2

3 => 3

Here is a method to get parameters.

First of all you have to load url helper, like this.


 

Then,

That’s all.

Tags

Similar posts