2024-09-03 16:29:44 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace kernel;
|
|
|
|
|
|
|
|
use kernel\Controller;
|
2024-09-11 17:38:46 +03:00
|
|
|
use kernel\helpers\Debug;
|
2024-09-03 16:29:44 +03:00
|
|
|
use kernel\services\AdminThemeService;
|
|
|
|
|
|
|
|
class AdminController extends Controller
|
|
|
|
{
|
|
|
|
protected AdminThemeService $adminThemeService;
|
|
|
|
|
2024-09-12 16:01:04 +03:00
|
|
|
protected function init(): void
|
2024-09-03 16:29:44 +03:00
|
|
|
{
|
|
|
|
$this->adminThemeService = new AdminThemeService();
|
|
|
|
$active_theme = $this->adminThemeService->getActiveAdminThemeInfo();
|
|
|
|
$this->cgView->layoutPath = getConst($active_theme['layout_path']);
|
|
|
|
$this->cgView->layout = "/" . $active_theme['layout'];
|
|
|
|
|
|
|
|
$this->cgView->addVarToLayout("resources", $active_theme['resource']);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|