我是新手&为这样的Gravatar插件尝试smarty。
<img src="{gravatar email="example@example.com"}">
但要获得电子邮件的价值,我需要使用{$ client.email}
所以我的最终代码看起来像
<img src="{gravatar email="{$client.email}"}">
哪个不起作用。
我哪里错了?
感谢
答案 0 :(得分:3)
我认为应该是这样的:
<img src="{gravatar email=$client.email}">
然而,自从我上次使用smarty以来已经有一段时间了。
请务必查看smarty的在线文档 - &gt; http://www.smarty.net/manual/en/