From c757b9f6f96d150bafb0a14f46bd44a511337f67 Mon Sep 17 00:00:00 2001 From: Pathologic Date: Mon, 18 Mar 2024 21:49:33 +0300 Subject: [PATCH] fix --- core/src/TemplateProcessor.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/TemplateProcessor.php b/core/src/TemplateProcessor.php index 87427b6304..b64c415fd8 100644 --- a/core/src/TemplateProcessor.php +++ b/core/src/TemplateProcessor.php @@ -69,8 +69,9 @@ public function getBladeDocumentContent() if(!empty($controller) && class_exists($namespace . $controller) && is_subclass_of($namespace . $controller, TemplateController::class)) { $controller = $namespace . $controller; $controller = new $controller; - $this->core->addDataToView($controller->getViewData()); + $controller->setView($templateAlias); $controller->process(); + $this->core->addDataToView($controller->getViewData()); $view = $controller->getView(); if(!empty($view)) { $templateAlias = $view;