From ce03dacbe9c55deca50e30dddf59d2892f224d38 Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 24 Jan 2017 13:52:34 +0200 Subject: [PATCH] -Export to storage fix --- controllers/StatisticsController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/StatisticsController.php b/controllers/StatisticsController.php index 666a23b..642d098 100755 --- a/controllers/StatisticsController.php +++ b/controllers/StatisticsController.php @@ -231,7 +231,7 @@ ->andFilterWhere($managerFilter) ->all(); - $file = fopen(\Yii::getAlias('@frontend/web/') . 'statistics_export.csv', 'w'); + $file = fopen(\Yii::getAlias('@storage/') . 'statistics_export.csv', 'w'); foreach ($orders as $order) { $line = []; /** @@ -270,7 +270,7 @@ 'button' => Html::a( Html::tag('i', '', [ 'class' => 'glyphicon glyphicon-download-alt' - ]) . ' Скачать', '/statistics_export.csv', [ + ]) . ' Скачать', '/storage/statistics_export.csv', [ 'class' => 'btn bg-olive', ]) ]; -- libgit2 0.21.4