I have the following tpl codes:
{foreach from=$data.reviews item=item}
{$item.user_name},{$item.datestamp}
{/foreach}
I'm creating a php file to simulate some data while designing this page. How should I code the array portion? Currently, I have the following:
$data = array('reviews' => array('user_name' => 'John',
'datestamp' => '24 April 2012',
)
);
However, very strangely the data displayed are JJ and 22. How can I display at least 2 info in the for loop?