Welcome Guest, Not a member yet? Register   Sign In
Routing optional paremeter
#2

[eluser]Jagar[/eluser]
I'm using
Code:
$route['admin/manage/?(.*)'] = 'admin/admin_manage/index/$1';

and in my index function i have a parameter function index($sortby='id') which is optional, that will be used if nothing is there.

But with that routing code, it seem to delete the default param for function index.

Any ideas?

Thanks for any help!


Messages In This Thread
Routing optional paremeter - by El Forum - 04-30-2009, 09:10 AM
Routing optional paremeter - by El Forum - 04-30-2009, 09:38 AM
Routing optional paremeter - by El Forum - 04-30-2009, 09:46 AM
Routing optional paremeter - by El Forum - 06-09-2011, 12:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB