Commit 0cd58f9710fe26f63e95d7fffc8dee02e22f1070
1 parent
377317af
remarketing
Showing
1 changed file
with
8 additions
and
8 deletions
Show diff stats
console/controllers/FeedController.php
... | ... | @@ -46,13 +46,13 @@ class FeedController extends Controller |
46 | 46 | $filename = 'feed.csv'; |
47 | 47 | setlocale(LC_ALL, 'ru_RU.CP1251'); |
48 | 48 | |
49 | - //$handle = fopen($dirName .'/'. $filename, "w"); | |
49 | + $handle = fopen($dirName .'/'. $filename, "w"); | |
50 | 50 | |
51 | -// $content = array ( | |
52 | -// array('aaa', 'bbb', 'ccc', 'dddd'), | |
53 | -// array('123', '456', '789'), | |
54 | -// array('"aaa"', '"bbb"') | |
55 | -// ); | |
51 | + $content = array ( | |
52 | + array('aaa', 'bbb', 'ccc', 'dddd'), | |
53 | + array('123', '456', '789'), | |
54 | + array('"aaa"', '"bbb"') | |
55 | + ); | |
56 | 56 | // //$content[] = ['ID', 'ID2', 'Item Category', 'Item title', 'Item description', 'Price']; |
57 | 57 | // //$content[] = ['ID', 'ID2', 'Item Category', 'Item title', 'Item description', 'Price']; |
58 | 58 | // |
... | ... | @@ -60,8 +60,8 @@ class FeedController extends Controller |
60 | 60 | //// $this->createRow($product, $content); |
61 | 61 | //// } |
62 | 62 | // |
63 | -// fputcsv($handle, $content); | |
64 | -// fclose($handle); | |
63 | + fputcsv($handle, $content); | |
64 | + fclose($handle); | |
65 | 65 | |
66 | 66 | print $dirName .'/'. $filename; |
67 | 67 | } | ... | ... |