I make a request:
jQuery(document).on('click', '.trigger',function(e) { e.preventDefault(); var that = jQuery(this); var event_link = that.data('link'); var url = '/' + event_link; jQuery.post(url, function(data) { console.log("++"); }).done(function (data) { console.log(data); }).fail(function (data) { console.log("---"); }) });` The controller pulls the base, the base returns an array. I convert the array to json in data .
Question: how now to show this good in the view? If without ajax, the controller gives the array an array, which we loop through and embed in the code. How to be here? Is it possible to get an array of php or how to correctly embed the data in html?