tags:

views:

23

answers:

1

Hello,

I am newbie & trying smarty for Gravatar plugin like this.

<img src="{gravatar email="[email protected]"}">

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

+2  A: 

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/

Max
@ Max : Worked perfect ! Thanks
MANnDAaR