diff --git a/backend/config/main.php b/backend/config/main.php index 4668141..d7c47be 100755 --- a/backend/config/main.php +++ b/backend/config/main.php @@ -2,6 +2,10 @@ use artbox\core\components\SeoUrlManager; use artbox\core\models\Page; use common\components\Sitemap; + use artbox\weblog\models\Article; + use artbox\weblog\models\Category; + use artbox\weblog\models\Tag; + use common\models\Persone; $params = array_merge( require( __DIR__ . '/../../common/config/params.php' ), @@ -91,6 +95,10 @@ 'showScriptName' => false, 'processRoutes' => [ 'page/view', + 'blog/article', + 'blog/category', + 'blog/tag', + 'persone/view', ], 'rules' => [], ], @@ -105,9 +113,21 @@ 'url' => 'page/view', ], [ - 'class' => \artbox\weblog\models\Article::className(), + 'class' => Article::className(), 'url' => 'blog/article', ], + [ + 'class' => Category::className(), + 'url' => 'blog/category', + ], + [ + 'class' => Tag::className(), + 'url' => 'blog/tag', + ], + [ + 'class' => Persone::className(), + 'url' => 'persone/view', + ], ], ], ], -- libgit2 0.21.4