开发者

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

开发者 https://www.devze.com 2022-12-30 01:06 出处:网络
In smarty is it possibl开发者_如何学Ce or is there any kind of function to render a template and return the result?

In smarty is it possibl开发者_如何学Ce or is there any kind of function to render a template and return the result?

for example:

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


Yeah there is,

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

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号