A
A
agent11562017-02-01 11:51:01
Yii
agent1156, 2017-02-01 11:51:01

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

2 answer(s)
A
Abdula Magomedov, 2017-02-01
@Avarskiy

https://github.com/yiisoft/yii2/blob/master/docs/g...
Item - URL rules

M
Maxim Timofeev, 2017-02-01
@webinar

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 question

Ask a Question

731 491 924 answers to any question