Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to customise views #185

Open
p2made opened this issue Mar 22, 2017 · 1 comment
Open

How to customise views #185

p2made opened this issue Mar 22, 2017 · 1 comment

Comments

@p2made
Copy link

p2made commented Mar 22, 2017

I may be suffereing an attack of the stupids, but I can't figure for the life of me how to customise the views & forms. I gues it starts with copying them to the views folders (I'm using Yii2 Advanced) of my Yii app. How to I tell my installation of yii2-user to use my custom views & forms?

@amnah
Copy link
Owner

amnah commented Mar 22, 2017

You have to update the components view config.

Note that this example is for the basic app; you'll need to change the paths for your advanced app.

// app/config/web.php
'components' => [
    'view' => [
        'theme' => [
            'pathMap' => [
                '@vendor/amnah/yii2-user/views' => '@app/views/user', // example: @app/views/user/default/login.php
            ],
        ],
    ],
],

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants