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]);
|
array_push($list, ["heatRating" => $rating, "ratingCount" => $count]);
|
||||||
}
|
}
|
||||||
return view('front.exports', [
|
return view(
|
||||||
|
'front.exports',
|
||||||
|
[
|
||||||
'title' => "Exports",
|
'title' => "Exports",
|
||||||
'list' => $list
|
'list' => $list
|
||||||
]);
|
]
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -77,7 +80,7 @@ class ExportController extends Controller
|
||||||
}
|
}
|
||||||
|
|
||||||
header('Content-Type: text/csv');
|
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;
|
echo implode(',', $columns) . PHP_EOL;
|
||||||
foreach ($list as $item) {
|
foreach ($list as $item) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue