public function exportAction() { $this->removeViewRenderer(); $data = KeyValue\Helper::export(); header("Content-type: application/xml"); header("Content-Disposition: attachment; filename=\"keyvalue_export.xml\""); echo $data; }