shuffle($this->_fsbp_list);
$response = array("result" => $this->_fsbp_list[0]);
return Response::forge((array) $response);
$.ajax({
type : "POST",
url : "http://www.example.com/subfolder_here/public/index.php?/api_rest/fsbp_rand",
dataType : "json",
});
I get this text (mimetype: text/html) as result:
array(1) { ["result"]=> string(61) "SENTENCE GOES HERE" }
$.ajax({And this works without problems.
url: select.attr('source'),
type: "GET",
dataType: "json",
data: {
query: request.term,
linkfilter: select.attr('linkfilter')+':'+$('#'+select.attr('linkfield')).val()
},
success: function(data) {
response($.map(data, function(item) {
return {
label: item.value,
value: item.key
}
}));
},
})
It looks like you're new here. If you want to get involved, click one of these buttons!