_helper->viewRenderer->setNoRender(true); $this->_helper->layout()->disableLayout(); } public function indexAction() { $file = realpath( $this->Module()->getBaseDir() . '/public/font/icons.' . $this->params->get('q', 'svg') ); if ($file === false) { $this->httpNotFound('File does not exist'); } readfile($file); } }