js:
eventDurationEditable:false,
editable:true,
droppable:true,
draggable:true,
lang:'ru',
firstDay: 1,
defaultTimedEventDuration:'01:30:00',
header: {
left: 'prev,next today',
center: 'title',
right: 'month,agendaDay'
},
eventSources: Api.get('instructor',{},function(response){
return response.events
}),
php:
$getDate = DB::select('id','date_event','start_event','end_event')
->from('events')
->where('user_id','=',Auth::get_id());
$results = $getDate->execute()->as_array();
$json = array();
foreach($results as $result){
$time=substr($result['date_event'],0,11);
$json[] = array(
'id' => $result['id'],
'start' => date('c',strtotime($time.$result['start_event'])),
'end' => date('c',strtotime($time.$result['end_event'])),
);
}
echo json_encode($json);
}