how to set headers for sending binary files?
Posted: Thu Apr 30, 2009 1:18 pm
Hi,
I have a action in a custom module, if a certain paramater is set, it should send the content as a PDF file, if its not set it shows $this->ProcessTempate
Of course right now if i run it with the pdf part.. it just shows the binary garble inside of my template in the body section...
Wondering how i pre-empt the tempalte, and the html/text header and all that fun stuff?
Thanks
I have a action in a custom module, if a certain paramater is set, it should send the content as a PDF file, if its not set it shows $this->ProcessTempate
Of course right now if i run it with the pdf part.. it just shows the binary garble inside of my template in the body section...
Wondering how i pre-empt the tempalte, and the html/text header and all that fun stuff?
Thanks