Welcome Guest, Not a member yet? Register   Sign In
How to setup a single route with optional argument
#7

(This post was last modified: 12-13-2023, 04:46 PM by kenjis.)

The relationship between multiple segments and parameters with (:any) is odd to me, but it is a specification.
See https://codeigniter4.github.io/CodeIgnit...ior-of-any

If you want to catch all segments, use the syntax ...$params

If I could fix it, I would, but changing the behavior would be a breaking change,
so it is not easy to change.
Reply


Messages In This Thread
RE: How to setup a single route with optional argument - by kenjis - 12-13-2023, 04:09 PM



Theme © iAndrew 2016 - Forum software by © MyBB