From 879615ba834d3de68344b1e83060d50e6cefcafa Mon Sep 17 00:00:00 2001 From: icemate Date: Thu, 5 Oct 2017 12:10:10 +0300 Subject: [PATCH] all fix2 --- frontend/views/layouts/_category_menu.php | 4 ++++ frontend/views/layouts/main.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/frontend/views/layouts/_category_menu.php b/frontend/views/layouts/_category_menu.php index d18fc35..abb9a3d 100755 --- a/frontend/views/layouts/_category_menu.php +++ b/frontend/views/layouts/_category_menu.php @@ -9,6 +9,10 @@ * @var Category[] $categories */ +$categories = \artbox\catalog\models\Category::find() + ->with('categories.lang', 'lang.alias') + ->where([ 'level' => 0 ]) + ->all(); ?>