parameter for default controller |
[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
|