[TYPO3] readfile in extension

Steffen Kamper steffen at sk-typo3.de
Fri Jan 18 00:09:10 CET 2008


"Roberto Torresani" <erreti at gmail.com> schrieb im Newsbeitrag 
news:mailman.4164.1200605718.5304.typo3-english at lists.netfielders.de...
> Hi Dmitry!
>
> 2008/1/17, Dmitry Dulepov [typo3] <dmitry at typo3.org>:
>>
>> Hi!
>>
>> Roberto Torresani wrote:
>> > I write a extension where I want read a file and write it to the 
>> > output.
>> > Now I set the Content-Type and use the php command readfile.
>> >
>> > When I call the page with my extension in the browser, I receive the
>> file
>> > with at the end the code html of the template in the page.
>> > How can I send to the browser only the read file and not the rest of 
>> > the
>> > typo3page?
>>
>> Ideal sulotion would be to use eID approach. It does not load the whole
>> [heavy] TYPO3 framework, does not need extra page types (=does not depend 
>> on
>> TS & cannot cause typeNum conflicts) and does not produce any default 
>> HTML
>> code. You can output the file much faster and easier with eID.
>
>
> I don't know eID. What is?
> I try to study more about this. Some tips of document to read?
>
> Thanks
>
> Roberto

you can see a very good usage of eID in Dmitry's extension "comments". Study 
code helps a lot, i don't know a good written tutorial of this technique.

vg  Steffen 




More information about the TYPO3-english mailing list