Tuesday, April 5, 2011

how to make smarty's display function return to a variable

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")
From stackoverflow
  • Yeah there is,

    $rendered_content = $smarty->fetch("content.html");
    
    Galen : What just happened

0 comments:

Post a Comment