Closed ibrasdev closed 6 years ago
Solution : Edit fullcalendar.default-settings.js :
eventSources: [
{
url: 'full-calendar/load',
type: 'POST',
data: {},
error: function () {}
}
Edit URL to what you want
Hello,
Thanks to you that I was able to correctly config this bundle with my symfony project <3
When i access full-calendar/load i can see the events loads from db in array :
[{"title":"Yoga class","startDate":"2018-01-15T16:46:33+00:00","allDay":true,"editable":false,"startEditable":false,"durationEditable":false,"overlap":true,"id":2,"url":"jujujuju","end":"2018-01-24T16:46:33+00:00"}, {"title":"Mami","startDate":"2018-01-15T16:46:33+00:00","allDay":true,"editable":false,"startEditable":false,"durationEditable":false,"overlap":true,"id":3,"url":"jujujuju","end":"2018-01-25T16:46:33+00:00"}]
But in the calendar layout events dont load, the profiler say that a have 404 ajax request :
In Chrome Debug it seems that the problem is related to path, the POST METHOD failed 404 :
POST http://localhost/full-calendar/load 404 (Not Found)
The correct url should be : http://localhost/No/Web/app_dev.php/full-calendar/load
Please how can i fix that.
My routing file :
This is my head layout :
Ive installed fosjsrouting.
Thanks for your help