您可以通过这种方式为dektrium yii2-user分配视图路径(假设@app是您的应用程序别名) :
'components' => [
'view' => [
'theme' => [
'pathMap' => [
'@dektrium/user/views' => '@app/views/your_dir_views' // mapping for override the views dektrium with your views
],
],
.....
],
Run Code Online (Sandbox Code Playgroud)