Hi guys,
how can I switch from frontend to backend using links in yii2 application? Actually, I only can set links between frontend or backend, not from frontend to backend.
I suppose, I have to change my config-file(main-local.php/urlManager) So, here it is:
.
.
.'urlManager' => [
'class' => 'yii\web\UrlManager',
'enablePrettyUrl' => true,
'showScriptName' => true,
'enableStrictParsing' => true,
'rules' => [
'/' => 'site/login',
'home' => 'site/index',
'reset' => 'site/request-password-reset',
'about' => 'site/about',
'contact' => 'site/contact',
'logout' => 'site/logout',
'signup' => 'site/signup',
'gii' => '/gii',
'debugger' => '/debug',
'<controller:\w+>/<id:\d+>' => '<controller>/view',
'<controller:\w+>/<id:\d+>' => '<controller>/save-as-new',
'<controller:\w+>/<action:\w+>/<id:\d+>' => '<controller>/<action>',
'<action:(contact|captcha)>' => 'site/<action>',
],
.
.
.