How to setup a single route with optional argument |
I found the current behavior came from CI3.
Code: $route['login/(.+)'] = 'auth/login/$1'; So it seems difficult to fix it as a bug. First, I sent a PR to improve the documentation. https://github.com/codeigniter4/CodeIgniter4/pull/8340 And I will try to add an option to pass multiple URI segments as one parameter. |
Welcome Guest, Not a member yet? Register Sign In |