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