I am using Full Calendar with server-side processing.
PHP
while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
$event_array = array();
$event_array['id'] = $row['id'];
$event_array['title'] = $row['forename'] "" $row['surname'];
$event_array['start'] = $row['start'];
$event_array['end'] = $row['end'];
$event_array['allDay'] = true;
$event_array['color'] = $row['colour'];
$event_array['textColor'] = "white";
array_push($return_array, $event_array);
}
Problem
The color
and textColor
values are not having an effect on the calendar. I have read http://fullcalendar.io/docs/event_data/events_array/ and these are both valid options but I am not sure if I am using them correctly in the array.
$row['colour']
is the row in the database storing the colour value such as black
.