ancarebeca / FullCalendarBundle

Symfony3 integration with the library FullCalendar.js
36 stars 38 forks source link

Error 404 due to Ajax /full-calendar/load #35

Open freewebdev opened 7 years ago

freewebdev commented 7 years ago

Can you help me I have symfony3.3.13 and I installed this bundle, it appears but I have a problem with ajax: / full-calendar / load error 404 ??? What should I put in the file EventCustom.php instead of "Your fields":

namespace AppBundle \ Entity;

use AncaRebeca \ FullCalendarBundle \ Model \ FullCalendarEvent;

class CalendarEvent extends FullCalendarEvent { // Your fields }

Do I have to create a particular table?

Thank you for your help and your work for this Bundle

ancarebeca commented 6 years ago

Sorry for my delayed answer @freewebdev,

I am not sure if I understood your question, Do you want to load the information defined in your Entity?

Here you have an example https://github.com/ancarebeca/full-calendar-example.

As you can see there is a Schedule Entity. To display this schedule on the calendar you have to create an EventListener, see AppBundle/EventListener/LoadDataListener.php, you have to populate the event with your entity. Do not forget to add your listener to services.yml (see app/config/services.yml)