Add column headers to csv export

This commit is contained in:
Björn Fromme
2018-10-02 17:49:49 +02:00
parent e9b2d0af4f
commit 731bfe13cc
@@ -132,6 +132,18 @@ class ResellerController extends ActionController
$fileHandle = fopen('php://output', 'wb');
fputcsv($fileHandle, [
'id',
'availability',
'condition',
'description',
'image_link',
'link',
'title',
'price',
'brand',
]);
foreach ($data['product'] as $product)
{
$minPrice = null;