diff --git a/src/Mvc/Controller/Rest.php b/src/Mvc/Controller/Rest.php index 7d833e0a..12474753 100644 --- a/src/Mvc/Controller/Rest.php +++ b/src/Mvc/Controller/Rest.php @@ -11,6 +11,7 @@ namespace Zemit\Mvc\Controller; +use Shuchkin\SimpleXLSXGen; use League\Csv\CharsetConverter; use League\Csv\Writer; use Phalcon\Events\Manager; @@ -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; }