diff --git a/frontend/controllers/SiteController.php b/frontend/controllers/SiteController.php index 8165363..e1c0359 100755 --- a/frontend/controllers/SiteController.php +++ b/frontend/controllers/SiteController.php @@ -4,6 +4,7 @@ use artbox\core\models\Page; use common\models\Feedback; + use common\models\Product; use common\models\Settings; use common\models\Slider; use common\models\Tile; @@ -101,7 +102,8 @@ ->orderBy('id') ->limit(4) ->all(); - + $productsCompany = Product::find()->where(['!=','type',Product::TYPE_PRIVATE])->all(); + $productsPrivate = Product::find()->where(['!=','type',Product::TYPE_COMPANY])->all(); return $this->render( 'index', [ @@ -110,6 +112,8 @@ 'forCompanies'=>$forCompanies, 'forPrivate'=>$forPrivate, 'tiles'=>$tiles, + 'productsCompany'=>$productsCompany, + 'productsPrivate'=>$productsPrivate, ] ); } diff --git a/frontend/views/site/index.php b/frontend/views/site/index.php index 135c02e..1484dde 100755 --- a/frontend/views/site/index.php +++ b/frontend/views/site/index.php @@ -672,7 +672,7 @@ $coordinates['lon'] = empty($settings->lon) ? 0 : $settings->lon; width="100%" height="380" style="border:0;" allowfullscreen="" loading="lazy"> - + Получить консультацию