function send($success = false) { $this->success = $success; g::obStart(); header('Content-Type: application/json'); echo json_encode($this); exit; }