Esempio n. 1
0
 public static function to_json($content)
 {
     $resp = APP::response();
     $resp->headers->set('Content-Type', 'application/json');
     $resp->headers->set('Cache-Control', 'no-cache');
     $resp->setStatus(200);
     $resp->setBody($content);
 }