17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 931 Views |
-
Events navigation, calendar widget

3 October 2007 at 8:55pm
Hello
I'm trying to do CalendarWidget. Main problem is how to make weeks partition?
In CalendarWidget.ss it should look like this:
<table>
<% control Weeks %>
<tr>
<% control Days %>
<td class="$Event">$Day</td>
<% end_control %>
</tr>
<% end_control %>
</table>And main problem is how to make proper dataModel?
I'm trying to do that by:
$output = new DataObjectSet();
for ( $week =1 ; $week >= 5 ; $week++ )
{
$output->push( new DataObjectSet( ), "Weeks" );
}foreach( $output as $objWeek )
{
$objWeek->push( new ArrayData( array( /* needed data */ ) ) );
}It doesn't work:( output is empty.
How to made proper data structure for easy template operations?
| 931 Views | ||
|
Page:
1
|
Go to Top |

