From 0cd58f9710fe26f63e95d7fffc8dee02e22f1070 Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 6 Dec 2016 11:31:20 +0200 Subject: [PATCH] remarketing --- console/controllers/FeedController.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/console/controllers/FeedController.php b/console/controllers/FeedController.php index c5caaf7..247b177 100644 --- a/console/controllers/FeedController.php +++ b/console/controllers/FeedController.php @@ -46,13 +46,13 @@ 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 = 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']; // @@ -60,8 +60,8 @@ class FeedController extends Controller //// $this->createRow($product, $content); //// } // -// fputcsv($handle, $content); -// fclose($handle); + fputcsv($handle, $content); + fclose($handle); print $dirName .'/'. $filename; } -- libgit2 0.21.4