I am trying to use routing in CI to create a registration form
signup redirects to user/signup
But my registration function may contain a parameter: function signup($type = 1)
How can I make this optional through routing? I tried $route['signup/?(:num)'] = 'user/signup/$1'; but when switching to /signup I get 404, only /signup/1/ works.
codeigniter routing routes
woutr_be
source share