6 years Work for Kforce Government Solutions Co-Founder of AppStucco Tech Focus: PHP (CodeIgniter, Laravel) Javascript (Node.js, Express, Phonegap) Databases (MySQL, PostGreSQL, MongoDB) Ben Edmunds @benedmunds http://benedmunds.com
{ $response = array( ‘success’ => TRUE, ‘status‘ => $status ); $this->response($response, 200); } else { $this->response(array( ‘success’ => FALSE, 'error' => 'Status not be found' ), 404); } Get the status. Pass the status in the response. Else send an error response.