Controller/Email/Accountcallback.php
private function sendAjaxResponse($error)
    {
        $message = [
            'err' => $error
        ];

        $this->getResponse()
            ->setHeader('Content-type', 'application/javascript', true)
            ->setBody(
                'signupCallback(' . $this->jsonHelper->jsonEncode($message) . ')'
            )
            ->sendResponse();
    }
private function sendAjaxResponse($error)
    {
        $message = [
            'err' => $error
        ];

        $this->getResponse()
            ->setHeader('Content-type', 'application/javascript', true)
            ->setBody(
                'signupCallback(' . $this->jsonHelper->jsonEncode($message) . ')'
            )
            ->sendResponse();
    }
private function sendAjaxResponse ( $ error ) { $ message = [ 'err' => $ error ] ; $ this -> getResponse ( ) -> setHeader ( 'Content-type' , 'application/javascript' , true ) -> setBody ( 'signupCallback(' . $ this -> jsonHelper -> jsonEncode ( $ message ) . ')' ) -> sendResponse ( ) ; }
Send ajax response.

@param string $error
@param string $msg
@return void
Send ajax response .