How to access a json with jquery being passed by php [closed]

-1

I am passing a json to my view and I need to play it inside full calendar events, but I do not know how to access this json through my URL

In my localhost the route of the view that receives json is this

" link "

$(function() {
    $('#calendar').fullCalendar({
        events: 'http://condofacil.com.br/dashboard/reservaArea',
    });
});
    
asked by anonymous 17.04.2018 / 04:47

1 answer

1

In PHP do you close by sending the json_encode () of the data?

If yes, you perform the callback calculation using a function:

events: function(callback){ # your code }

    
17.04.2018 / 08:15