From 050681b5e0fb29f78b4f721b94acc282282b488e Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 6 Dec 2016 11:37:08 +0200 Subject: [PATCH] remarketing --- console/controllers/FeedController.php | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/console/controllers/FeedController.php b/console/controllers/FeedController.php index 3e80cfa..9b4abd6 100644 --- a/console/controllers/FeedController.php +++ b/console/controllers/FeedController.php @@ -49,17 +49,12 @@ class FeedController extends Controller $handle = fopen($dirName .'/'. $filename, "w"); - $content = array ( - array('aaa', 'bbb', 'ccc', 'dddd'), - array('123', '456', '789'), - array('"aaa"', '"bbb"') - ); $content[] = ['ID', 'ID2', 'Item Category', 'Item title', 'Item description', 'Price']; $content[] = ['ID', 'ID2', 'Item Category', 'Item title', 'Item description', 'Price']; -// foreach ($this->getProducts() as $product) { -// $this->createRow($product, $content); -// } + foreach ($this->getProducts() as $product) { + $this->createRow($product, $content); + } foreach ($content as $item) { fputcsv($handle, $item); -- libgit2 0.21.4