【问题标题】:how to make smarty's display function return to a variable如何让smarty的显示函数返回一个变量
【发布时间】:2011-02-17 22:38:16
【问题描述】:

在 smarty 中是否有可能或有任何函数来呈现模板并返回结果?

例如:

$rendered_content = $smarty->render("content.html")

【问题讨论】:

    标签: php smarty


    【解决方案1】:

    是的,有,

    $rendered_content = $smarty->fetch("content.html");
    

    【讨论】:

      猜你喜欢
      • 2018-04-13
      • 2021-05-13
      • 1970-01-01
      • 2023-04-09
      • 2014-08-30
      • 1970-01-01
      • 1970-01-01
      • 2013-11-18
      • 1970-01-01
      相关资源
      最近更新 更多