Closed tedyonly closed 7 years ago
Probably the application cannot determine what is the URI for routing (because it treats the whole URL as the baseUrl). This is not a problem related to this extension.
I am closing this due to inactivity. If the problem still present, please reopen the issue, and provide more detail about what is not working exactly.
backend/config/main.php `<?php $params = array_merge( require(DIR . '/../../common/config/params.php'), require(DIR . '/../../common/config/params-local.php'), require(DIR . '/params.php'), require(DIR . '/params-local.php') );
return [ 'id' => 'app-backend', 'basePath' => dirname(DIR), 'controllerNamespace' => 'backend\controllers', 'bootstrap' => ['log'], 'modules' => [], 'homeUrl' => '/project2/administrator',
'components' => [ 'request' => [ 'baseUrl' => '/project2/administrator', ],
]; `
common/config/main.php `<?php return [ //Default 'vendorPath' => dirname(dirname(DIR)) . '/vendor', 'name'=>'PROJECT2', 'bootstrap' => [ /* 'translate', */
'languagepicker',
'translatemanager' ],
'language' => 'id-ID',
'sourceLanguage' => 'en-US',
'components' => [ //Default 'cache' => [ 'class' => 'yii\caching\FileCache', ],
/* 'i18n' => [ 'class' => 'yii\i18n\I18N', 'translations' => [ '' => [ 'class' => 'conquer\i18n\MessageSource', 'translator' => [ 'class'=>'conquer\i18n\translators\GoogleTranslator', 'apiKey' => 'AIzaSyCl9B5SNTjJdtvuqDUkMF9qIbPj6EeRcms', // 'class'=>'conquer\i18n\translators\YandexTranslator', // 'apiKey' => 'yandex form', ], ], ], ], /
/* 'languagepicker' => [ 'class' => 'lajax\languagepicker\Component', 'languages' => function () { // List of available languages (icons and text) return \lajax\translatemanager\models\Language::getLanguageNames(true); }, 'cookieName' => 'language', // Name of the cookie. //'cookieDomain' => '//localhost/pustaka', // Domain of the cookie.
'expireDays' => 64, // The expiration time of the cookie is 64 days. 'callback' => function() { if (!\Yii::$app->user->isGuest) { $user = \Yii::$app->user->identity; $user->language = \Yii::$app->language; $user->save(); } } ], */
/* 'modules' => [ 'translate' => 'conquer\i18n\Module', // Untuk I18n
];
if make comment for this
'enablePrettyUrl' => true, 'showScriptName' => false,`'Home' action run normal else it goes to frontend even the url show in the browser "//localhost/project2/administrator" till I change to be "//localhost/project2/backend/web" it back normal again. What is going on?