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