/** * Constructor * @see XenForo_ViewRenderer_Abstract::__construct() */ public function __construct(XenForo_Dependencies_Abstract $dependencies, Zend_Controller_Response_Http $response, Zend_Controller_Request_Http $request) { parent::__construct($dependencies, $response, $request); $this->_response->setHeader('Content-Type', 'text/plain; charset=UTF-8', true); $this->_response->setHeader('Content-Disposition', 'inline; filename=json.txt', true); }