I need to override a view file like ‘pathMap’ => [ ‘@dektrium/user/views’ => ‘@app/views/site’] I followed manual but all I see is the old view whatever I do. Perhaps something wrong with baseUrl or basePath but I’m not sure what I should do.
'components' => [ 'request' => [ 'csrfParam' => '_csrf-frontend', 'baseUrl' => '/', ], // ................. 'urlManager' => [ 'enablePrettyUrl' => true, 'showScriptName' => false, 'rules' => [ '/' => 'site/index', '<action:\w+>' => 'site/<action>', ], ], 'view' => [ 'theme' => [ //'basePath' => '@app/themes/basic', 'baseUrl' => '@app/views/site', 'pathMap' => [ '@dektrium/user/views' => '@app/views/site' ] ] ] //................. ]
'modules' => [ 'user' => [ 'class' => 'dektrium\user\Module', 'admins' => ['admin'], 'modelMap' => [ 'User' => 'common\models\User', ], ]
I open page on the address like mydomain.test/user/register (in case it’s somehow matter)
I also tried to put ‘view’ part in components of common/config/main.php and of module. Tried to create themes folder and put new view therein, nothing seems work