multiple user dan multiple table user di YII2

Yii::$app->xxx->login($user);

silahkan rubah xx dengan apa yang anda define di config/web.php

‘xxx’ => [
‘class’ => ‘yii\web\User’,
‘identityClass’ => ‘app\models\xxximplementuseridentity’,
‘enableSession’ => false,
‘enableAutoLogin’ => false,
],

configurasi ini terletak di blok components.

Leave a Reply

© 2021 IT & Photography blog | WordPress Theme : ScrollMe