Compare View
Commits (2)
Showing
2 changed files
Show diff stats
backend/config/main.php
@@ -11,6 +11,7 @@ | @@ -11,6 +11,7 @@ | ||
11 | require( __DIR__ . '/params.php' ), | 11 | require( __DIR__ . '/params.php' ), |
12 | require( __DIR__ . '/params-local.php' ) | 12 | require( __DIR__ . '/params-local.php' ) |
13 | ); | 13 | ); |
14 | + $frontendMain = require(__DIR__.'/../../frontend/config/main.php'); | ||
14 | 15 | ||
15 | return [ | 16 | return [ |
16 | 'id' => 'app-backend', | 17 | 'id' => 'app-backend', |
@@ -94,22 +95,7 @@ | @@ -94,22 +95,7 @@ | ||
94 | 'showScriptName' => false, | 95 | 'showScriptName' => false, |
95 | 'rules' => [], | 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 | 'sitemap' => [ | 99 | 'sitemap' => [ |
114 | 'class' => Sitemap::className(), | 100 | 'class' => Sitemap::className(), |
115 | 'entities' => [ | 101 | 'entities' => [ |
frontend/config/main.php
@@ -66,6 +66,15 @@ | @@ -66,6 +66,15 @@ | ||
66 | 'blog/tag', | 66 | 'blog/tag', |
67 | 'blog/category', | 67 | 'blog/category', |
68 | 'page/view', | 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 | 'assetsAutoCompress' => [ | 80 | 'assetsAutoCompress' => [ |