[eluser]musonic[/eluser]
Thanks Jagar for the tips. I wonder if you could help a bit further. I'm trying to populate the calendar from a database. I've got the code to retrieve the events etc. and I can loop through them to populate the arrays. However, then I get stuck. Because I've been building an array within the loop like this:
Code:
$toSend[] = array($year => array($month => array($day => array($data['start'].' - '.$data['event_title'] => site_url($data['event_id']) ))));
and then sending it to the calendar simply by assigning
outside of the loop, I end up with an autoincrementing array wrapping everything up ie
Code:
$data[$number][$year][$month][$day][$value]
Does that make sense? I need to know how to either populate the $data array so as not to get this extra layer or how to remove it before I send the data to the calendar.