Answer the question
In order to leave comments, you need to log in
How to set up the CNC so that the controller is replaced by my word (any)?
How to set up the CNC so that the controller is replaced by my word (any)?
Answer the question
In order to leave comments, you need to log in
https://github.com/yiisoft/yii2/blob/master/docs/g...
Item - URL rules
who is stopping you from calling the controller the right word, but since religion forbids you:
'urlManager' => [
'enablePrettyUrl' => true,
'showScriptName' => false,
'rules' => [
'myword/<action>' => 'somecontroller/<action>'
],
],
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question