Hi, I try to rename some columns for CSV source but in the table get column0, column1... etc
$this->src("att")
->pipe(new ColumnRename(array(
"Column 0" => "attcode",
"Column 1" => "dateTime",
"Column 2" => "in_out",
"Column 3" => "type",
)))
->pipe(new Limit(array(50)))
->pipe($this->dataStore("attendance"));
//view file:
Table::create(array(
"dataStore" => $this->dataStore('attendance'),
));
koolreport\core\DataStore Object ( [rows:protected] => Array ( [0] => Array ( [Column 0] => 20001 [Column 1] => 2017-04-25 15:17:55 [Column 2] => 0 [Column 3] => 1 ) [1] => Array ( [Column 0] => 10001 [Column 1] => 2017-04-25 15:29:30 [Column 2] => 0 [Column 3] => 1 ) [2] => Array ( [Column 0] => 200