Files
kupshop/admin/board.php
2025-08-02 16:30:27 +02:00

21 lines
580 B
PHP

<?php
global $cfg, $type;
use KupShop\AdminBundle\Util\AdminClassLocator;
use KupShop\KupShopBundle\Util\Compat\ServiceContainer;
$type = getVal('type', null, 'index');
$className = $type;
$adminClassLocator = ServiceContainer::getService(AdminClassLocator::class);
$classPath = $adminClassLocator->getClassPath('board/board.'.$className.'.php');
if (file_exists($classPath)) {
$list = $adminClassLocator->createClass($classPath, $className);
$list->run();
} else {
$err = "Neexistující board {$type}";
throw new Exception('Neexistující board '.$type);
}