Compare commits
1 commit
moiety/ver
...
develop
Author | SHA1 | Date | |
---|---|---|---|
|
9fa7fc6554 |
1 changed files with 8 additions and 5 deletions
|
@ -30,10 +30,13 @@ class ExportController extends Controller
|
|||
}
|
||||
array_push($list, ["heatRating" => $rating, "ratingCount" => $count]);
|
||||
}
|
||||
return view('front.exports', [
|
||||
'title' => "Exports",
|
||||
'list' => $list
|
||||
]);
|
||||
return view(
|
||||
'front.exports',
|
||||
[
|
||||
'title' => "Exports",
|
||||
'list' => $list
|
||||
]
|
||||
);
|
||||
}
|
||||
|
||||
//
|
||||
|
@ -77,7 +80,7 @@ class ExportController extends Controller
|
|||
}
|
||||
|
||||
header('Content-Type: text/csv');
|
||||
header('Content-Disposition: attachment; filename=' . $type . "-" . $percent);
|
||||
header('Content-Disposition: attachment; filename=' . $type . "-" . $percent . ".csv");
|
||||
|
||||
echo implode(',', $columns) . PHP_EOL;
|
||||
foreach ($list as $item) {
|
||||
|
|
Loading…
Add table
Reference in a new issue