Answer the question
In order to leave comments, you need to log in
How to make a transition to the backend?
I can’t figure out how to make it so that during authorization the user gets into the backend in the admin panel. It is necessary for me that in the controler to make redirect at successful authorization. I searched on the Internet did not find suitable information
Answer the question
In order to leave comments, you need to log in
first, in the config, you need to connect an additional URL manager referring to the back-end, for example:
'urlManagerBackend' => [
'class' => 'yii\web\urlManager',
'enablePrettyUrl' => true,
'showScriptName' => false,
'baseUrl' => $backEndUrl,
],
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question