first commit
This commit is contained in:
20
admin/board.php
Normal file
20
admin/board.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?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);
|
||||
}
|
||||
Reference in New Issue
Block a user