17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1383 Views |
-
DataObjectSet( new DataObjectSet ) in template

7 October 2007 at 4:17am
Hello
I have problem with template data access of sub properties.I have data structure like this:
function Calendar()
{
$output = new DataObjectSet();for ( $week = 1 ; $week <= 5 ; $week++ )
{
$output->push( new DataObjectSet() );
}foreach( $output as $objWeek )
{$objWeek->push( new DataObject() );
$objWeek->push( new DataObject() );
$objWeek->push( new DataObject() );
$objWeek->push( new DataObject() );
$objWeek->push( new DataObject() );}
return $output
}
this is simplified example
in template
<table>
<% control Calendar %>
<tr><% control ??? %>
here i don't know how to get for example $DayNumber property of each DataObject
<% control %></tr>
<% end_control %>
</table>
| 1383 Views | ||
|
Page:
1
|
Go to Top |

