Hi there,
I built a custom page that show case the user details. when put the below code in the file, it shows the export option in the application.But when download is clicked, page just got refreshed and doesn't download the csv nor excel file.
what I miss?
"echo $OUTPUT->download_dataformat_selector("Export as", 'blank_page.php');"
hereby i attached the source code... have a look of it.