[dokuwiki] Re: Admin plugin with download content


On 20 Nov 2008, at 17:57, Gabriel Birke wrote:

Hello,

I would like to write an admin plugin hwere you can download files that are
generated by PHP. Obviously I need to output the file contents in the
"handle" method of my plugin and end the execution of the PHP after that. My question is: are there any necessary cleanup function or events I must call
before stopping the execution?


No, no clean up is required. Conceivably you could trigger the DOKUWIKI_DONE event, however that event is not always triggered right now. E.g. it is not triggered when dokuwiki redirects after form posting. I reckon its better not to trigger it anyway as in this circumstance dokuwiki is acting as a conduit for a download rather than doing any of its normal processes.


- Chris
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: