03-18-2013, 09:04 PM
[eluser]CroNiX[/eluser]
I don't see you sending json headers before you output the json.
I put this in a helper function...
I don't see you sending json headers before you output the json.
I put this in a helper function...
Code:
function send_json($array)
{
header('Cache-Control: no-cache, must-revalidate');
header('Expires: Mon, 26 Jul 1997 05:00:00 GMT');
header('Content-type: application/json');
echo json_encode($array);
exit();
}