How to customize vendor view files?

♀尐吖头ヾ 提交于 2019-12-06 02:25:51

问题


In yii2 how do I customize vendor view files without modifying the original view files?

I'm using dektrium yii2-user and would like to make a few changes to the login page.


回答1:


You can assign your view path for dektrium yii2-user in this way (assume @app your app alias) :

'components' => [
    'view' => [
        'theme' => [
            'pathMap' => [
                '@dektrium/user/views' => '@app/views/your_dir_views'  // mapping for override the views dektrium with  your views 
            ],
        ],
   .....
 ],


来源:https://stackoverflow.com/questions/31231120/how-to-customize-vendor-view-files

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!