Answer the question
In order to leave comments, you need to log in
Assign a template for a module via config?
I downloaded the module for yii2.
There was a need to assign a template to this module, I don’t want to climb into the module itself, which lies in the vendor folder, and it’s not right. Can it be done somehow like this?
'modulename' => [
'class' => 'module\yii\class\Module',
'layout' => '@app/views/layout'
],
Answer the question
In order to leave comments, you need to log in
Hmm. Ashamed
'modulename' => [
'class' => 'module\yii\class\Module',
'layout' => '@app/views/layout'
],
Here is an example of redefining the theme for the dektrium/user extension:
(The "components/view" section in the config)
'components' => [
'view' => [
'theme' => [
'pathMap' => [
'@dektrium/user/views' => '@app/views/user'
],
],
],
]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question