【发布时间】:2018-11-11 16:20:06
【问题描述】:
我通过调用从 ViewHelper 返回 Fluid 中的对象域模型“发布”:
{p:lastPost(topic: topic)} 或 <p:lastPost topic="{topic}"/>
如何使用这种语法访问 Fluid 中的属性?
喜欢的名字通常是{lastPost.author.name}
和日期
{lastPost.crdate -> f:format.date(format: '%d %B %Y')}
【问题讨论】: