public function downloadInstructionAction() { $dbTable = new Application_Model_DbTable_Block(); $linkfile = $dbTable->getTextById($_GET['id']); $this->download = $linkfile; foreach ($this->download as $download) { $link = $download['link_instruction']; $name = $download['name_document']; header("Content-Type: application/octet-stream"); header("Content-Disposition: attachment; filename='{$name}'"); readfile($link); exit; } }