# Overriding views When you start using Yii2-user you will probably find that you need to override the default views provided by the module. Although view names are not configurable, Yii2 provides a way to override views using themes. To get started you should configure your view application component as follows: ```php ... 'components' => [ 'view' => [ 'theme' => [ 'pathMap' => [ '@dektrium/user/views' => '@app/views/user' ], ], ], ], ... ``` In the above `pathMap` means that every view in @dektrium/user/views will be first searched under `@app/views/user` and if a view exists in the theme directory it will be used instead of the original view. ## Example An example of overriding the registration page view is demonstrated below. First make sure you have configured view application component. In order to override the registration view file you should create `@app/views/user/registration/register.php`. Open it and paste in the following code: ```php title = Yii::t('user', 'Sign up'); $this->params['breadcrumbs'][] = $this->title; ?>
This view file has been overriden!
= Html::a(Yii::t('user', 'Already registered? Sign in!'), ['/user/security/login']) ?>