Welcome Guest, Not a member yet? Register   Sign In
JSON formatting in the browser (missing headers)?
#2

https://codeigniter.com/user_guide/outgo...-reference
PHP Code:
return $this->setResponseFormat('json')->respond(['error' => false]); 
respond($data[, $statusCode=200[, $message='']])
Parameters:
$data (mixed) – The data to return to the client. Either string or array.
$statusCode (int) – The HTTP status code to return. Defaults to 200
$message (string) – A custom “reason” message to return.
Reply


Messages In This Thread
RE: JSON formatting in the browser (missing headers)? - by iRedds - 02-01-2021, 06:02 AM



Theme © iAndrew 2016 - Forum software by © MyBB