diff --git a/common/models/Gallery.php b/common/models/Gallery.php index 28f55d8..d960451 100755 --- a/common/models/Gallery.php +++ b/common/models/Gallery.php @@ -29,6 +29,7 @@ 'gallery' => true, ] ) + ->with('lang') ->all(); } diff --git a/frontend/views/site/gallery.php b/frontend/views/site/gallery.php index 069e049..3c0cd87 100755 --- a/frontend/views/site/gallery.php +++ b/frontend/views/site/gallery.php @@ -1,6 +1,6 @@ get('seo'); -$this->title = \Yii::t('app', 'Галерея'); -$this->params[ 'breadcrumbs' ][] = $this->title; + + $seo = \Yii::$app->get('seo'); + $this->title = \Yii::t('app', 'Галерея'); + $this->params[ 'breadcrumbs' ][] = $this->title; ?>