V
V
Vlad Osadchyi2019-01-19 19:21:00
Yii
Vlad Osadchyi, 2019-01-19 19:21:00

How to make routing with change of get parameters?

Now there are the following rules:

'/<entity:(suppliers|customers)>' => 'firms/index',
'/<entity:(suppliers|customers)>/<action>' => 'firms/<action>',

Can you please tell me how to make the routing to firms/index with the get parameter entity = 'customer' when switching to /customers ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vyachin, 2019-01-21
@VladOsadchyi

'/<entity:(customer)>s' => 'firms/index',
'/<entity:(suppliers)>' => 'firms/index',
'/<entity:(suppliers|customers)>/<action>' => 'firms/<action>',

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question