Answer the question
In order to leave comments, you need to log in
How to organize multilingualism in Yii2 with SEO optimized links?
Good day to all.
I organize multilingualism according to this article Yii2 and the organization of multilingualism , everything is ok on the frontend, but the trouble is with the backend.
The essence of the problem is this... When I go to the admin panel using the link 'kamikaze/admin', I get this error
. I don't know what to do anymore.
Here is the config file from the backend
...
'urlManager' => [
'class' => 'backend\components\localization\LocalizationUrlManager',
'baseUrl' => '/admin',
'enablePrettyUrl' => true,
'showScriptName' => false,
'rules' => [
'<controller:\w+>/<action:\w+>'=>'<controller>/<action>',
],
],
'request' => [
'class' => 'backend\components\localization\LocalizationRequest',
'baseUrl' => '/admin',
],
...
Answer the question
In order to leave comments, you need to log in
Here is what I used for multilingual Yii2 sites:
"codemix/yii2-localeurls": "*",
"zelenin/yii2-i18n-module": "dev-master",
"omgdef/yii2-multilingual-behavior": "~2.0"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question