如何在AJAX日历中显示所有活动?
我想我需要从响应AJAX填充数组events
我的PHP:
foreach($calendar as $val){
$this->outputData["calendar"][] = array(
"title" => $val->DetailToUsersName,
"type" => 'info',
"startsAt" => "Sat Jun 01 2015 01:00:00 GMT+0500",
"endsAt" => "Sat Jun 01 2016 01:00:00 GMT+0500",
"resizable" => true,
"incrementsBadgeTotal" => true,
"recursOn" => 'year'
);
}
echo json_encode($this->outputData);