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

[eluser]Isern Palaus[/eluser]
[quote author="aryan_" date="1259077368"]I have created a default controller 'Pages'. How do I pass parameter to index of this controller?

i.e. http://example.com/param1/param2

I need this only for default controller.

Please help. Thanks![/quote]

Hi,

you can use:

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

in your index() function.

Wish it helps!
Isern


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