Ben kullanıcılara dosyaları hizmet veren bir Zend Denetleyicisi var
Ben dosyanın gerçek akışı yapmak için Noginn SendFile eylem yardımcısı kullanmış, ancak kodu sadece MIME ve içerik türünü vb ayarladıktan sonra tampon içine dosyanın içeriğini yerleştirmek için readfile ($ yol) kullanır
Sorun boru aşağı geldiğinde dosya, başında bir fazladan boş bayt 0x20 olan bir tren metin dosyaları için şut değil ama görüntüler için belli ki ölümcül olduğunu
My controller has the following code in it to stop any view scripts from being rendered: $this->_helper->viewRenderer->setNoRender(); $this->_helper->layout->disableLayout(); but I think a whitespace is still getting placed in the output buffer somewhere before the file is getting streamed. Is there a way to clear the output buffer before I stream the file?
Teşekkürler ilerlemedir