From d9a1e14dc14f9d6eaf790c9927549bb4c903d20d Mon Sep 17 00:00:00 2001 From: timur Date: Mon, 4 Dec 2017 16:44:42 +0200 Subject: [PATCH] seo lang markup --- frontend/controllers/SiteController.php | 10 ++++++++++ 1 file changed, 10 insertions(+), 0 deletions(-) diff --git a/frontend/controllers/SiteController.php b/frontend/controllers/SiteController.php index c9f3e8f..9a08eb5 100755 --- a/frontend/controllers/SiteController.php +++ b/frontend/controllers/SiteController.php @@ -52,6 +52,16 @@ */ public function actionIndex() { + + $aliasIdsForBlog = [1, 2, 3]; + $this->view->params['aliases'] = \artbox\core\models\Alias::find() + ->where( + [ + 'id' => $aliasIdsForBlog + ] + ) + ->all(); + return $this->render('index'); } -- libgit2 0.21.4