Welcome Guest, Not a member yet? Register   Sign In
parameter for default controller
#3

[eluser]aryan_[/eluser]
Quote:you can use:

$param1 = $this->uri->segment(1);
$param2 = $this->uri->segment(2);

in your index() function.

Wish it helps!
Isern

But, It'll look for controller for segment1 and function for segment2!

I've got a little success using route:

$route['pages/:any'] = "pages/index/$1";

I can remove 'pages/' to achieve this, but what about other controllers?


Messages In This Thread
parameter for default controller - by El Forum - 11-24-2009, 03:42 AM
parameter for default controller - by El Forum - 11-24-2009, 03:51 AM
parameter for default controller - by El Forum - 11-24-2009, 05:50 AM
parameter for default controller - by El Forum - 11-24-2009, 06:28 AM



Theme © iAndrew 2016 - Forum software by © MyBB