amnah / yii2-user

Yii2 user authentication module
MIT License
253 stars 104 forks source link

View #193

Closed des1roer closed 7 years ago

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

not work

amnah commented 7 years ago

what do you mean it doesnt work? after you put that into your config file, did you copy/paste the files from @vendor/amnah/yii2-user/views into @app/views/user? what does your directory structure look like

des1roer commented 7 years ago

image


amnah commented 7 years ago

hmm yea looks right. whats the error?

amnah commented 7 years ago

oh i think you're missing the default folder

@app/views/user/default/login.php