In route, how to use a dynamic action name, like {action} in 1.x. Is there any detail syntax statement for route file?
In 1.x, route will transfer a localhost/page/zzz?xxx=yyy to a action zzz with route
GET /{controller}/{action} {controller}.{action}
You can’t do that at this level.
You can, however, write an invoker which will dynamically invoke an action using reflection…
With
invokelooking like this: