Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Displaying an array


Reply


2 Posts   1198 Views

Avatar
r0ar

Community Member, 13 Posts

2 August 2008 at 11:29pm

Ok, so have a variable length array and I want to display it.
How exactly do I do that?

Also,
is there some way that I can get a function to output html, that will be displayed?

Thanks!

Avatar
Willr

Forum Moderator, 5513 Posts

3 August 2008 at 4:19pm

I think you can use something called ArrayData which will convert your array into a viewable data object which you can iterate through / use in your template - http://doc.silverstripe.com/doku.php?id=arraydata