src/Foundation/Ajax.php
protected function ajaxResponseHandler()
    {
        echo json_encode([
            'success'      => $this->errorMessage ? 0 : 1,
            'errorMessage' => $this->errorMessage,
            'errorCode'    => $this->errorCode,
            'data'         => $this->errorMessage ? '' : $this->dataPacket,
        ]);

        die();
    }
protected function ajaxResponseHandler()
    {
        echo json_encode([
            'success'      => $this->errorMessage ? 0 : 1,
            'errorMessage' => $this->errorMessage,
            'errorCode'    => $this->errorCode,
            'data'         => $this->errorMessage ? '' : $this->dataPacket,
        ]);

        die();
    }
protected function ajaxResponseHandler ( ) { echo json_encode ( [ 'success' => $ this -> errorMessage ? 0 : 1 , 'errorMessage' => $ this -> errorMessage , 'errorCode' => $ this -> errorCode , 'data' => $ this -> errorMessage ? '' : $ this -> dataPacket , ] ) ; die ( ) ; }
AJAX Response Handler - Builds the response and returns it to the JavaScript

@since 3.0.0

@return null
AJAX Response Handler - Builds the response and returns it to the JavaScript