How to access a json with jquery being passed by php

Asked

Viewed 57 times

-1

I’m passing a json to my view and I need to play inside the full Legends Vents, but I don’t know how to access this json through my URL

in my localhost the view path that gets json is this

"http://condofacil.com.br/dashboard/reservaArea"

$(function() {
    $('#calendar').fullCalendar({
        events: 'http://condofacil.com.br/dashboard/reservaArea',
    });
});

1 answer

1

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

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

events: function(callback){ #your code }

Browser other questions tagged

You are not signed in. Login or sign up in order to post.