public function Init()
 {
     $strCsv = FBContestApplication::ExportToCSV();
     header("Content-type: application/octet-stream");
     header("Content-Disposition: attachment; filename=\"my-data.csv\"");
     die($strCsv);
 }
Exemplo n.º 2
0
<?php

header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=\"my-data.csv\"");
$strReturn = FBContestApplication::ExportToCSV();
die($strReturn);