Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Pathologic authored Mar 18, 2024
1 parent 925c54d commit c757b9f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/src/TemplateProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c757b9f

Please sign in to comment.