|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
gaurav Smarty Rookie
Joined: 04 Aug 2003 Posts: 5
|
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
|
Back to top |
|
gaurav Smarty Rookie
Joined: 04 Aug 2003 Posts: 5
|
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Mon Aug 04, 2003 1:20 pm Post subject: |
|
|
did you read the example on the link i posted? each $contact is an array with different keys and values, you can adopt this one-to-one to your problem. your example looks like a three-dimensional array so you have to extrapolate it to a three nested {foreach}s maybe but it works the same.
Code: |
{foreach from=$xaWhois key=i item=who}
{foreach from=$who key=what item=array}
{foreach from=$array key=name item=value}
value {$xawhois.$i.$what.$name} is the same as {$value}
{/foreach}
{/foreach}
{/foreach}
|
HTH |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|