I'm trying to export my report to a CSV file with no extra options besides BOM being false. I've also made sure to add the use line in my report.php. Heres the error:
Call to undefined method report::exportToCSV() in C:\Users\name\Documents\KoolReportsProject\site\table.php
This is how I create and run the report:
require_once "report.php";
$report = new report;
$report->run()->exportToCSV('report', array(
"BOM"=>false,
))->toBrowser("report.csv");
..and of course I have this
class report extends \koolreport\KoolReport{
use \koolreport\excel\CSVExportable;
It DOES download a csv file, but it's completely empty. Any help would be much appreciated.