[英]Need Help with this smarty
I am newbie & trying smarty for Gravatar plugin like this. 我是新手,尝试像这样的Gravatar插件聪明。
<img src="{gravatar email="example@example.com"}">
But to get value of email I need to use {$client.email} 但是要获得电子邮件的价值,我需要使用{$ client.email}
So My final code look like 所以我的最终代码看起来像
<img src="{gravatar email="{$client.email}"}">
Which is not working. 这不起作用。
Where I am going wrong ? 我要去哪里错了?
Thanks 谢谢
I think it should rather be something like that: 我认为应该是这样的:
<img src="{gravatar email=$client.email}">
However, its been a while since I last used smarty. 但是,自从我上次使用smarty已经有一段时间了。
Be sure to also check the online documentation for smarty -> http://www.smarty.net/manual/en/ 确保还检查了smarty的在线文档-> http://www.smarty.net/manual/zh/
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.