Browse code

Use getResponse() to output template in fragment controllers

Benjamin Roth authored on14/05/2025 09:46:10
Showing2 changed files
... ...
@@ -60,7 +60,7 @@ class ModalElementController extends AbstractContentElementController
60 60
 
61 61
         $template->modal_configuration = $modal->row();
62 62
 
63
-        $GLOBALS['TL_BODY'][] = $template->parse();
63
+        $GLOBALS['TL_BODY'][] = $template->getResponse();
64 64
 
65 65
         return new Response();
66 66
     }
... ...
@@ -61,7 +61,7 @@ class ModalModuleController extends AbstractFrontendModuleController
61 61
 
62 62
         $template->modal_configuration = $modal->row();
63 63
 
64
-        $GLOBALS['TL_BODY'][] = $template->parse();
64
+        $GLOBALS['TL_BODY'][] = $template->getResponse();
65 65
 
66 66
         return new Response();
67 67
     }