From 377317af5983dc7b2f4e1fc3e78c6da06db9ac2f Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 6 Dec 2016 11:30:29 +0200 Subject: [PATCH] remarketing --- console/controllers/FeedController.php | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/console/controllers/FeedController.php b/console/controllers/FeedController.php index ad67c27..c5caaf7 100644 --- a/console/controllers/FeedController.php +++ b/console/controllers/FeedController.php @@ -46,22 +46,22 @@ class FeedController extends Controller $filename = 'feed.csv'; setlocale(LC_ALL, 'ru_RU.CP1251'); - $handle = fopen($dirName .'/'. $filename, "w"); + //$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); -// } - - fputcsv($handle, $content); - fclose($handle); +// $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); +//// } +// +// fputcsv($handle, $content); +// fclose($handle); print $dirName .'/'. $filename; } -- libgit2 0.21.4