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, Ed, biapar, Willr, Ingo

Events navigation, calendar widget

Go to End



Community Member, 56 Posts

3 October 2007 at 8:55pm


I'm trying to do CalendarWidget. Main problem is how to make weeks partition?

In it should look like this:

<% control Weeks %>
<% control Days %>
<td class="$Event">$Day</td>
<% end_control %>
<% end_control %>

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?