Hi,
can i set a DataObjectSet in a Dataobject?
...
$list = new DataObjectSet();
foreach ($dates as $d => $data) {
$do = new DataObject();
$do->Date = $d;
$do->Total = $data;
$list->push($do);
}
$DO->DatesList = $list;
return $DO;
...
and in the template call it via a nested control:
<% control DO %>
<div>
$ID
<% control DatesList %>
$Date $Total
<% end_control %>
<hr/>
</div>
<% end_control %>
Well i tried it but it doesnt seem to work.
Is there a alternative way to achieve something like that?