public function asJsonP($data): YiiResponse
    {
        $response = Yii::$app->getResponse();
        $response->data = $data;
        $response->format = YiiResponse::FORMAT_JSONP;
        return $response;
    }
public function asJsonP($data): YiiResponse
    {
        $response = Yii::$app->getResponse();
        $response->data = $data;
        $response->format = YiiResponse::FORMAT_JSONP;
        return $response;
    }
public function asJsonP ( $ data ) : YiiResponse { $ response = Yii :: $ app -> getResponse ( ) ; $ response -> data = $ data ; $ response -> format = YiiResponse :: FORMAT_JSONP ; return $ response ; }
Sets the response format of the given data as JSONP.

@param mixed $data The data that should be formatted.
@return Response A response that is configured to send `$data` formatted as JSON.
@see YiiResponse::$format
@see YiiResponse::FORMAT_JSONP
@see JsonResponseFormatter
Sets the response format of the given data as JSONP .