URL Manager inside the module


I want let my modules independent, I want to set the url rules inside the modules.

I found some links about this, but I couldn’t do it works. I think the link below is more appropriate for this functionality:


Someone can send a exemple how to configure a URL Rules inside the modules?


which type of url u want. be specify with requirements.

modules are meant to run within application. you may try to merge configs using yii\helpers\ArrayHelper::merge() at some place. but it will be one config array in the end anyway.