Hi there - I’m new to Yii and have been reading all around the Yii docs to find a solution to my URL issue. I’m switching my site from Drupal to Yii - so far so good!
I currently have a bunch of URLs that all direct to the same controller, such as
Each of these paths are handled in a similar way and then are handed off to sub actions based on the parts of the URL that come after the first two parts (these are auth links embedded in emails).
I’m wondering how I can implement this without making individual rules for each different possibility, since this could get very very long (there are tens of these, and are also other controllers that have a structures like this). Since the docs advise to keep the url rules at a minimum, I would like to be able to handle the secondary parts within my controller (or wherever is appropriate) and just have one main url rule - it would be great if I could just use the first one (u/blah) and then just get an array of the rest in the controller. Possible?
Another example is something like ‘review/create’ and ‘review/create/39’ which would pre-fill a certain form field.