diff --git a/frontend/controllers/SiteController.php b/frontend/controllers/SiteController.php index a1d7b90..7748894 100644 --- a/frontend/controllers/SiteController.php +++ b/frontend/controllers/SiteController.php @@ -110,27 +110,29 @@ public function actionIndividual() { + $idsArray = [ + 25, + 37, + 12, + 42, + ]; $objects = Objectkb::find() ->with('lang.alias') ->where( [ - 'id' => [ - 25, - 37, - 38, - 39, - ], + 'id' => $idsArray, ] ) - ->orderBy('id') + ->indexBy('id') ->all(); return $this->render( 'individual', [ 'objects' => $objects, - ] + 'idsArray' => $idsArray, + ] ); } // частное лицо diff --git a/frontend/views/site/individual.php b/frontend/views/site/individual.php index a7ae20d..591b27c 100644 --- a/frontend/views/site/individual.php +++ b/frontend/views/site/individual.php @@ -5,6 +5,7 @@ * @var Feedback $contact * @var SeoComponent $seo * @var Objectkb[] $objects + * @var array $idsArray */ use artbox\core\components\SeoComponent; @@ -207,7 +208,8 @@
-- libgit2 0.21.4