Commit a40d5f4b0588a8c13beccc0bb40ecc80dd32a458

Authored by Timur Kastemirov
1 parent e7a73632

sitemap 2

Showing 1 changed file with 21 additions and 1 deletions   Show diff stats
backend/config/main.php
... ... @@ -2,6 +2,10 @@
2 2 use artbox\core\components\SeoUrlManager;
3 3 use artbox\core\models\Page;
4 4 use common\components\Sitemap;
  5 + use artbox\weblog\models\Article;
  6 + use artbox\weblog\models\Category;
  7 + use artbox\weblog\models\Tag;
  8 + use common\models\Persone;
5 9  
6 10 $params = array_merge(
7 11 require( __DIR__ . '/../../common/config/params.php' ),
... ... @@ -91,6 +95,10 @@
91 95 'showScriptName' => false,
92 96 'processRoutes' => [
93 97 'page/view',
  98 + 'blog/article',
  99 + 'blog/category',
  100 + 'blog/tag',
  101 + 'persone/view',
94 102 ],
95 103 'rules' => [],
96 104 ],
... ... @@ -105,9 +113,21 @@
105 113 'url' => 'page/view',
106 114 ],
107 115 [
108   - 'class' => \artbox\weblog\models\Article::className(),
  116 + 'class' => Article::className(),
109 117 'url' => 'blog/article',
110 118 ],
  119 + [
  120 + 'class' => Category::className(),
  121 + 'url' => 'blog/category',
  122 + ],
  123 + [
  124 + 'class' => Tag::className(),
  125 + 'url' => 'blog/tag',
  126 + ],
  127 + [
  128 + 'class' => Persone::className(),
  129 + 'url' => 'persone/view',
  130 + ],
111 131 ],
112 132 ],
113 133 ],
... ...