URL Manager inside the module

Hello,

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:

http://www.yiiframework.com/doc-2.0/guide-runtime-routing.html#adding-rules-dynamically

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

Thanks.

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.