Welcome Guest, Not a member yet? Register   Sign In
Routing using post and get params
#1

[eluser]xylar[/eluser]
I have the following in my config/routes.php file:

$route['(:any)'] = "dashboard/index/$1";

This works as expected when visiting the following url: mysite.com/user/id , the function in the dashboard controller is called and the 1st param is 'user' and 2nd 'id'. However when passing through post and get values such as mysite.com/user/id?page=2 the function appears to ignore the post params and the 1st (and only) param is '2'.

Am I missing something in my route condition?


Messages In This Thread
Routing using post and get params - by El Forum - 03-25-2011, 02:08 AM
Routing using post and get params - by El Forum - 03-25-2011, 04:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB