【发布时间】:2011-02-17 22:38:16
【问题描述】:
在 smarty 中是否有可能或有任何函数来呈现模板并返回结果?
例如:
$rendered_content = $smarty->render("content.html")
【问题讨论】:
在 smarty 中是否有可能或有任何函数来呈现模板并返回结果?
例如:
$rendered_content = $smarty->render("content.html")
【问题讨论】:
是的,有,
$rendered_content = $smarty->fetch("content.html");
【讨论】: