src/Models/AjaxResponse.php
public function output()
    {
        header('Content-type: application/json');
        $data = array(
            'status' => $this->status,
            'data' => $this->data
        );
        echo json_encode($data);
        die();
    }
public function output()
    {
        header('Content-type: application/json');
        $data = array(
            'status' => $this->status,
            'data' => $this->data
        );
        echo json_encode($data);
        die();
    }
public function output ( ) { header ( 'Content-type: application/json' ) ; $ data = array ( 'status' => $ this -> status , 'data' => $ this -> data ) ; echo json_encode ( $ data ) ; die ( ) ; }
Outputs the JSON response status and data

@access public
@return void
Outputs the JSON response status and data