CodeIgniter get URL parameters

0

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.

Share.

About Author

Sumith Harshan is the Web Engineer Specializes in Java Script, JQuery, HTML4/5, CSS2/3, PHP, CodeIgniter, CakePHP, J2SE, J2EE, XML, Hacking & Security, Mobile Interface Developing, Magento, Wordpress, Joomla, Drupal,PHPBB,Facebook App Developing and Open cart...etc.