Hi,
I'm trying to build a module that generates a report and gives the user the option to download the report as a CSV file.
When I run the script wrapped in a Moodle module / Moodle it fails to work. The file is being generated but there's no download popup.
When I run the script stand alone outwith Moodle it works. The file is generated and the download file popup appears and the file can be downloaded.
All I can think of is there is some issue with the way the HTTP header is being generated and is conflicting with a Moodle Http header.
Any ideas.
Andy