Answer the question
In order to leave comments, you need to log in
How to do dynamic routing?
Tell me how to perform dynamic routing ..
For example, now I have routes in a separate file .. and they are strict for example:
'main/index/{page:\d+}' => [
'controller' => 'main',
'action' => 'index',
],
Answer the question
In order to leave comments, you need to log in
Make a rout that matches everything in general, and they will figure it out already in the controller.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question