Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to customize vendor view files?

Tags:

yii2

yii2-user

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.

like image 733
Roger Avatar asked Jul 05 '15 13:07

Roger


1 Answers

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 
            ],
        ],
   .....
 ],
like image 186
ScaisEdge Avatar answered Sep 25 '22 09:09

ScaisEdge