[TYPO3-mvc] Export a view as txt-File
Stefan Völker
t3 at nyxos.de
Mon Oct 1 14:08:42 CEST 2012
Perfect, thank you Stefano - works like a charm!
Best regards,
Stefan.
Am 01.10.2012 um 13:55 schrieb Stefano Cecere <scecere at krur.com>:
> 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
> _______________________________________________
> TYPO3-project-typo3v4mvc mailing list
> TYPO3-project-typo3v4mvc at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-project-typo3v4mvc
More information about the TYPO3-project-typo3v4mvc
mailing list