Yii2 how change loginUrl in components user for module
- By Preneesh AV --
- 02-Apr-2018 --
- 46 Comments
If you use an advanced template you have two configuration files
backend / config / main.php
frontend / config / main.phpThis can be achieved by changing config file :'user'=>['identityClass'=>'app\models\web\User',
'enableAutoLogin'=>true,
'loginUrl'=>['/backend/login'],
],
