refactor(shop_category): migrate admin module to Domain+DI with routing and ajax cleanup

This commit is contained in:
2026-02-15 15:32:23 +01:00
parent c99b42af68
commit d0747b3e0a
63 changed files with 8998 additions and 625 deletions

View File

@@ -1,21 +0,0 @@
<?php
namespace admin\view;
class ShopCategory
{
public static function category_edit( $category, $pid = '', $languages )
{
$tpl = new \Tpl;
$tpl -> languages = $languages;
$tpl -> pid = $pid;
$tpl -> category = $category;
return $tpl -> render( 'shop-category/category-edit' );
}
public static function subcategories_list( $categories_list, $level )
{
$tpl = new \Tpl;
$tpl -> level = $level;
$tpl -> categories = $categories_list;
return $tpl -> render( 'shop-category/subcategories-list' );
}
}