kernel v0.1.4
This commit is contained in:
@ -5,14 +5,17 @@ namespace kernel;
|
||||
use kernel\Controller;
|
||||
use kernel\helpers\Debug;
|
||||
use kernel\services\AdminThemeService;
|
||||
use kernel\services\ThemeService;
|
||||
|
||||
class AdminController extends Controller
|
||||
{
|
||||
protected AdminThemeService $adminThemeService;
|
||||
protected ThemeService $themeService;
|
||||
|
||||
protected function init(): void
|
||||
{
|
||||
$this->adminThemeService = new AdminThemeService();
|
||||
$this->themeService = new ThemeService();
|
||||
$active_theme = $this->adminThemeService->getActiveAdminThemeInfo();
|
||||
$this->cgView->layoutPath = getConst($active_theme['layout_path']);
|
||||
$this->cgView->layout = "/" . $active_theme['layout'];
|
||||
|
Reference in New Issue
Block a user