[TYPO3-mvc] Export a view as txt-File
Stefano Cecere
scecere at krur.com
Mon Oct 1 13:55:33 CEST 2012
hi Stefan
this is simple.. it's not Extabse.. it's pure PHP:
just add:
header('Content-type: text/plain');
header('Content-Disposition: attachment; filename="defaultilename.txt"');
then you output your text!
On 01/10/12 13:28, Stefan Völker wrote:
> Hi Extbase-Fanatics!
>
> I want to output some data as a txt-download.
> For that I started with an own action, but how can I tell Extbase to generate the view and "push" it to the website visitor as a download ?
>
> Any hints ?
>
>
> Thanks in advance,
>
> Stefan Völker.
>
--
-- --- ----- -------
Stefano Cecere
KRUR studio - http://krur.com
More information about the TYPO3-project-typo3v4mvc
mailing list