public function outputText(\Zend_View_Abstract $view, \Zend_Controller_Action_HelperBroker $helper) { $view->layout()->disableLayout(); $helper->viewRenderer->setNoRender(true); header("Content-Type: application/download"); header(sprintf('Content-Disposition: attachment; filename="patchlevel.%d.sql"', $this->getPatchLevel())); header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Pragma: cache"); // HTTP/1.0 echo $this->getTextOutput(); exit; }