How to configure routing in yii2 it to be like in zend framework?

I enabled prettyUrl for controllers and actions, this is working fine as expected
/controller/action and not r=controller/action. OK

I have a filter where there may be a large set of parameters.
but to me the engine generates all this as
/movie/search?type=all&genre_id=4&quality_id=6&year=2020&rating=[8,10]

I need it to be as zend framework default
/controller/action/:param1/:value1/:param2/:value2
how can I achieve this logic from the router. to everything that comes after the action it was seen as request parameters key-value for all url project globally.

/movie/search/type/all/genre_id/4/quality_id/6/year/2020/rating/[8,10]
/movie/search/genre_id/4/rating/[8,10]
/movie/search/year/2020/rating/[8,10]
and as you can see can be omitted
April 19th 20 at 12:05
1 answer
April 19th 20 at 12:07
How to configure routing in yii2 it to be like in zend framework?

To Install Zend

And if the case:
1. To read the documentation.
2. The route is processed using regular expressions (or without them)
3. The route is very simple: address => redirect. For example

'afisha/past/default/all' => 'afisha/past/all'

Find more questions by tags Yii