T
T
theEternalStudent2016-07-08 17:35:28
Yii
theEternalStudent, 2016-07-08 17:35:28

How to exclude the test module from the route in main.php?

I have a route in main.php

'<module:\w+>/<controller:\w+>' => '<module>/<controller>/index'
. How to exclude the test module from it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
devian3000, 2016-07-08
@theEternalStudent

More or less like this. Just check the regulator.
<module: (?!test)\w+>/<controller: \w+ >

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question