Compare View

switch
from
...
to
 
Commits (2)
backend/config/main.php
... ... @@ -11,6 +11,7 @@
11 11 require( __DIR__ . '/params.php' ),
12 12 require( __DIR__ . '/params-local.php' )
13 13 );
  14 + $frontendMain = require(__DIR__.'/../../frontend/config/main.php');
14 15  
15 16 return [
16 17 'id' => 'app-backend',
... ... @@ -94,22 +95,7 @@
94 95 'showScriptName' => false,
95 96 'rules' => [],
96 97 ],
97   - 'urlManagerFrontend' => [
98   - 'class' => SeoUrlManager::className(),
99   - 'enablePrettyUrl' => true,
100   - 'showScriptName' => false,
101   - // 'dontShowDefaulPrefix' => true,
102   - 'rules' => [
103   - '\/robots.txt' => 'site/robots',
104   - ],
105   - 'processRoutes' => [
106   - 'object/view',
107   - 'blog/article',
108   - 'blog/tag',
109   - 'blog/category',
110   - 'page/view',
111   - ],
112   - ],
  98 + 'urlManagerFrontend' => $frontendMain['components']['urlManager'],
113 99 'sitemap' => [
114 100 'class' => Sitemap::className(),
115 101 'entities' => [
... ...
frontend/config/main.php
... ... @@ -66,6 +66,15 @@
66 66 'blog/tag',
67 67 'blog/category',
68 68 'page/view',
  69 +
  70 + 'site/media-about',
  71 + 'site/individual',
  72 + 'blog/index',
  73 + 'object/index',
  74 + 'site/about',
  75 + 'site/legal',
  76 + 'site/contact',
  77 +
69 78 ],
70 79 ],
71 80 'assetsAutoCompress' => [
... ...