Suggest me a better way to do it. I would like to show the array result in the horizontal manner.
Column1 | Column 2 | Column 3
3 | 7 | 10
now it shows in vertical manner as follows
Column1 | Column 2 | Column 3
3
7
10
Array Result : Stored in $result variable and assigned in smarty variable
Array
(
[0] => Array
(
[1] => 3
[Value] => 3
)
[1] => Array
(
[1] => 7
[Value] => 7
)
[2] => Array
(
[1] => 10
[Value] => 10
)
)
.tpl code
<div>
<ul>
<li>Column1</li>
<li>Column2</li>
<li>Column3</li>
<div class="clear"></div>
</ul>
{section name="index" loop=$result}
<ul>
<li>{$result[index].value}</li>
<div class="clear"></div>
</ul>
{/section}
</div>