Hello,
could someone provide an example of using nested modules with correct URL path in URLManager?
Example of structure backend using modules:
backend/
------modules/
------------Settings (parent module)
------------------modules
------------------------Info (nested module)
------------------------User (nested module)
these settings in URLManager was fine only for parent modules:
'modules' => [
'settings' => [
'class' => 'backend\modules\Settings\Settings',
'modules' => [
'info' => [
'class' => 'backend\modules\Settings\modules\Info\Info',
],
'user' => [
'class' => 'backend\modules\Settings\modules\User\User',
],
],
],
],
...
'urlManager' => [
'rules' => [
'<module:[a-zA-Z0-9-]+>/<action:[a-zA-Z0-9-]+>' => '<module>/default/<action>',
],
],
So I need working route to /backend/setting/user, /backend/setting/info
I think problem is in URLManager rules, can anybody help me with right configuration of URL rules for modules and nested modules?
Thanks