Answer the question
In order to leave comments, you need to log in
How to correctly build a CNC rule in Yii2?
I have a module. Panel
at the address /panel
it has a Task controller
already at the address /panel/task
and the action New
the address has become /panel/task/new
two parameters are passed to the action task get
network and service
the address is obtained:
/panel/task/new/?network= a&service=b
Tell me how to make a link like:
/panel/task/new/a/b
My unsuccessful attempts:
'panel/task/new/<network:\d+>/<service:\d+>' => '<Module>/task/new',
'panel/task/new/<network:\d+>/<service:\d+>' => 'panel/task/new',
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question