Commit 879615ba834d3de68344b1e83060d50e6cefcafa
1 parent
2bdb3b90
all fix2
Showing
2 changed files
with
5 additions
and
1 deletions
Show diff stats
frontend/views/layouts/_category_menu.php
... | ... | @@ -9,6 +9,10 @@ |
9 | 9 | * @var Category[] $categories |
10 | 10 | */ |
11 | 11 | |
12 | +$categories = \artbox\catalog\models\Category::find() | |
13 | + ->with('categories.lang', 'lang.alias') | |
14 | + ->where([ 'level' => 0 ]) | |
15 | + ->all(); | |
12 | 16 | ?> |
13 | 17 | <ul class="dropdown-menu sidebar" role="menu" aria-labelledby="dLabel" <?php echo $isHome ? 'id="home-category-anchor"' : ''; ?>> |
14 | 18 | <?php | ... | ... |
frontend/views/layouts/main.php
... | ... | @@ -38,6 +38,7 @@ |
38 | 38 | ->with('categories.lang', 'lang.alias') |
39 | 39 | ->where([ 'level' => 0 ]) |
40 | 40 | ->all(); |
41 | + | |
41 | 42 | /** |
42 | 43 | * @var LoginForm $loginForm |
43 | 44 | */ |
... | ... | @@ -195,7 +196,6 @@ _________________________________________________________ --> |
195 | 196 | '_category_menu', |
196 | 197 | [ |
197 | 198 | 'isHome' => $isHome, |
198 | - 'categories' => $categories, | |
199 | 199 | ] |
200 | 200 | ); |
201 | 201 | echo '</div>'; | ... | ... |