I have the following xml which I'm accessing through simplexml:
<sequences>
<sequence>
<ImageUrl id="">
http://www.image.com/image.jpg
</ImageUrl>
<photographer>name</photographer>
</sequence>
<sequence>
<ImageUrl id="">
http://www.image.com/image1.jpg
</ImageUrl>
<photographer>name 1</photographer>
</sequence>
</sequences>
I need to pass this data to smarty and output in a template. I need to be able to output the first sequence image and photographer name and then the second. How can I do this? I can see that you can pass an array to smarty and then loop over it in the template but I essentially need to pass a multidimensional array, 1 array for each sequence node.