How do I get the output of Savant3 template into a string?

125 Views Asked by At

How do I get a Savant3 template to render to a string rather than just output it directly to the web page?

1

There are 1 best solutions below

0
Matthew Lock On BEST ANSWER

Use the fetch method rather than the usual display method.

$my_template_output = $tpl->fetch('mytemplate.tpl.php');