Skip to content

Commit

Permalink
fix SimpleXLSXGen
Browse files Browse the repository at this point in the history
  • Loading branch information
jturbide committed Oct 25, 2023
1 parent aedb62f commit 7fee355
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Mvc/Controller/Rest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

namespace Zemit\Mvc\Controller;

use Shuchkin\SimpleXLSXGen;
use League\Csv\CharsetConverter;
use League\Csv\Writer;
use Phalcon\Events\Manager;
Expand Down Expand Up @@ -281,7 +282,7 @@ public function download($list = [], $fileName = null, $contentType = null, $par
$xlsxArray [] = array_values($outputRow);
}

$xlsx = \SimpleXLSXGen::fromArray($xlsxArray);
$xlsx = SimpleXLSXGen::fromArray($xlsxArray);
$xlsx->downloadAs($fileName . '.xlsx');
die;
}
Expand Down

0 comments on commit 7fee355

Please sign in to comment.