开发者

Need Help with this smarty

开发者 https://www.devze.com 2023-01-11 22:05 出处:网络
I am newbie & trying smarty for Gravatar plugin like开发者_开发百科 this. <img src=\"{gravatar email=\"example@example.com\"}\">

I am newbie & trying smarty for Gravatar plugin like开发者_开发百科 this.

<img src="{gravatar email="example@example.com"}">

But to get value of email I need to use {$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.

Be sure to also check the online documentation for smarty -> http://www.smarty.net/manual/en/

0

精彩评论

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

关注公众号