return;
} // If the attribute padding is a boolean true
if ($this->padding === true
) { $this->padding =
$request->
getParam('callback'
);
$this->padding =
preg_replace('#[^0-9a-z_]+#i', '',
(string) $this->padding
);
} // decide if we should render the data or the whole page
if ($this->renderer === true
) { $content =
$subject->
View()->
getAssign();
} elseif (\
is_string($this->padding
) &&
$this->padding !== ''
) { $content =
$response->
getBody();
} else { return;
} // Convert content to json
$content =
$this->
convertToJson($content);
if (\
is_string($this->padding
) &&
$this->padding !== ''
) { $response->
setHeader('Content-type', 'text/javascript', true
);