Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
freewebdev opened this issue Nov 22, 2017 · 1 comment
Open

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

freewebdev opened this issue Nov 22, 2017 · 1 comment
Labels

Comments

@freewebdev
Copy link

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
Copy link
Owner

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants