@@ -64,7 +64,7 @@ |
||
64 | 64 | 'type' => 'many', |
65 | 65 | 'model' => 'Menu\Item', |
66 | 66 | 'col' => 'Menu_id', |
67 | - 'where'=>[['parent_id',0]] |
|
67 | + 'where'=>[['parent_id', 0]] |
|
68 | 68 | ], |
69 | 69 | 'group' => [ |
70 | 70 | 'col' => 'group_id', |
@@ -6,7 +6,7 @@ |
||
6 | 6 | $code = 'main'; |
7 | 7 | } |
8 | 8 | $uid = Tools::randomString(); |
9 | -$childDraws = function($item, $childDraws, $uid) { |
|
9 | +$childDraws = function ($item, $childDraws, $uid) { |
|
10 | 10 | if ($item->childs(['order' => ['weight', 'asc']])) { |
11 | 11 | echo "<ul class ='dropdown-menu'>"; |
12 | 12 |
@@ -6,7 +6,7 @@ |
||
6 | 6 | if (empty($code)) { |
7 | 7 | $code = 'main'; |
8 | 8 | } |
9 | -$childDraws = function($item, $childDraws) { |
|
9 | +$childDraws = function ($item, $childDraws) { |
|
10 | 10 | if ($item->childs(['order' => ['weight', 'asc']])) { |
11 | 11 | echo "<ul class ='list-unstyled'>"; |
12 | 12 | foreach ($item->childs(['order' => ['weight', 'asc']]) as $item) { |