10

In smarty is it possible or is there any kind of function to render a template and return the result?

for example:

$rendered_content = $smarty->render("content.html")
user327396
  • 381
  • 2
  • 7

1 Answers1

18

Yeah there is,

$rendered_content = $smarty->fetch("content.html");
Anthony
  • 36,459
  • 25
  • 97
  • 163
user327396
  • 381
  • 2
  • 7