Commit 46e98c42a32ac0c7739c28c65d761cca62e666a4

Authored by Timur Kastemirov
1 parent ee6ab8f2

dont show default prefix

Showing 2 changed files with 4 additions and 3 deletions   Show diff stats
frontend/config/main.php
... ... @@ -46,6 +46,7 @@ return [
46 46 'class' => SeoUrlManager::className(),
47 47 'enablePrettyUrl' => true,
48 48 'showScriptName' => false,
  49 + 'dontShowDefaulPrefix' => true,
49 50 'rules' => [
50 51 '\/robots.txt' => 'site/robots',
51 52 ],
... ...
frontend/views/site/error.php
... ... @@ -23,10 +23,10 @@ $this->title = $name;
23 23 </a>
24 24 </p>
25 25  
26   - <h3><?= \Yii::t('others', 'error_sorry') ?></h3>
27   - <h4 class="text-muted"><?= \Yii::t('others', 'error_404') ?></h4>
  26 + <h3><?= \Yii::t('app', 'error_sorry') ?></h3>
  27 + <h4 class="text-muted"><?= \Yii::t('app', 'error_404') ?></h4>
28 28  
29   - <p class="buttons"><a href="index.html" class="btn btn-template-main"><i class="fa fa-home"></i> <?= \Yii::t('others', 'gohomepage') ?></a>
  29 + <p class="buttons"><a href="index.html" class="btn btn-template-main"><i class="fa fa-home"></i> <?= \Yii::t('app', 'gohomepage') ?></a>
30 30 </p>
31 31 </div>
32 32  
... ...