fullcalendar data ajax로 가져와 달력에 뿌리기
달력의 시작일과 마지막 일의 날짜를 서버로 넘겨 조회 디비에서 불러온 일정 데이터를 events의 callback함수를 사용 서버에서 넘길때는 이런 형식으로 넘겼다. 물론 json 형식 문자열로 변환하여 보내고, $aSchedule[] = [ 'title' => $data['title'], 'start' => date('Y-m-d H:i', strtotime($data['start_date'])), 'end' => date('Y-m-d H:i', strtotime($data['end_date'])), 'className' => 'bg-' . $data['color'], 'id' => $data['idx'], 'content' => $data['content'] ]; 캘린더 쪽 스크립트 부분에 하단부분을 ..
언어별(프로그램별) 유용한 정보/PHP
2023. 3. 14. 10:01