How can this be done inside of a template? I have done it with ArrayData using the key in the template loop to access values from the template, but if I have an arbitrary array of strings with no keys, what variable do I use to access the values?
If in my controller I have this:
public function ArrayList()
{
$ArrayList = new ArrayList(array('this', 'is', 'a', 'test'));
return $ArrayList;
}
And this in my template:
<% loop $ArrayList %>1<% end_loop %>
What do I put in place of 1 to get the template to spit out "this is a test"?