igfs/kernel/AdminController.php

23 lines
611 B
PHP
Raw Normal View History

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;
protected function init()
{
$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']);
}
}