refactor(shop_category): migrate admin module to Domain+DI with routing and ajax cleanup
This commit is contained in:
@@ -97,7 +97,7 @@
|
||||
<b><?= $category['languages'][$this->dlang]['title']; ?></b>
|
||||
</div>
|
||||
<?= \Tpl::view( 'shop-product/subcategories-list', [
|
||||
'categories' => \admin\factory\ShopCategory::subcategories( $category['id'] ),
|
||||
'categories' => ( new \Domain\Category\CategoryRepository( $GLOBALS['mdb'] ) )->subcategories( $category['id'] ),
|
||||
'level' => ($this->level ?? 0) + 1,
|
||||
'dlang' => $this->dlang,
|
||||
'name' => 'mass_categories[]'
|
||||
|
||||
@@ -511,7 +511,7 @@ ob_start();
|
||||
</div>
|
||||
<?=
|
||||
\Tpl::view('shop-product/subcategories-list', [
|
||||
'categories' => \admin\factory\ShopCategory::subcategories($category['id']),
|
||||
'categories' => ( new \Domain\Category\CategoryRepository( $GLOBALS['mdb'] ) )->subcategories($category['id']),
|
||||
'product_categories' => $this->product['categories'],
|
||||
'dlang' => $this->dlang
|
||||
]);
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
</div>
|
||||
<?=
|
||||
\Tpl::view( 'shop-product/subcategories-list', [
|
||||
'categories' => \admin\factory\ShopCategory::subcategories( $category[ 'id' ] ),
|
||||
'categories' => ( new \Domain\Category\CategoryRepository( $GLOBALS['mdb'] ) )->subcategories( $category[ 'id' ] ),
|
||||
'product_categories' => $this -> product_categories,
|
||||
'dlang' => $this -> dlang,
|
||||
'name' => $this -> name
|
||||
|
||||
Reference in New Issue
Block a user