diff --git a/src/Controls/Fragments/TemplateControlTrait.php b/src/Controls/Fragments/TemplateControlTrait.php index a08b9c0..d458862 100644 --- a/src/Controls/Fragments/TemplateControlTrait.php +++ b/src/Controls/Fragments/TemplateControlTrait.php @@ -84,8 +84,9 @@ public function render() */ public function toString() { + $template = $this->getTemplate(); $this->beforeRender(); - return (string) $this->getTemplate(); + return (string) $template; }