I'm trying to use routing in CI to create a signup form
signup
is re-routed to user/signup
But my signup function can contain a paramater: function signup($type = 1)
How can I make this optional via routing? I tried $route['signup/?(:num)'] = 'user/signup/$1';
, but when going to /signup
I'm getting a 404, only /signup/1/
works.