diff --git a/common/models/slider/Slide.php b/common/models/slider/Slide.php index 36343cd..f25b8c3 100644 --- a/common/models/slider/Slide.php +++ b/common/models/slider/Slide.php @@ -126,6 +126,6 @@ */ public function getBackground() { - return $this->hasOne(Image::className(), [ 'id' => 'image_id' ]); + return $this->hasOne(Image::className(), [ 'id' => 'background_id' ]); } } diff --git a/frontend/views/site/index.php b/frontend/views/site/index.php index f160ec7..3b490b4 100755 --- a/frontend/views/site/index.php +++ b/frontend/views/site/index.php @@ -24,7 +24,11 @@ _________________________________________________________ -->