Commit 377317af5983dc7b2f4e1fc3e78c6da06db9ac2f

Authored by Alex Savenko
1 parent e7614497

remarketing

Showing 1 changed file with 15 additions and 15 deletions   Show diff stats
console/controllers/FeedController.php
... ... @@ -46,22 +46,22 @@ 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   - );
56   - //$content[] = ['ID', 'ID2', 'Item Category', 'Item title', 'Item description', 'Price'];
57   - //$content[] = ['ID', 'ID2', 'Item Category', 'Item title', 'Item description', 'Price'];
58   -
59   -// foreach ($this->getProducts() as $product) {
60   -// $this->createRow($product, $content);
61   -// }
62   -
63   - fputcsv($handle, $content);
64   - fclose($handle);
  51 +// $content = array (
  52 +// array('aaa', 'bbb', 'ccc', 'dddd'),
  53 +// array('123', '456', '789'),
  54 +// array('"aaa"', '"bbb"')
  55 +// );
  56 +// //$content[] = ['ID', 'ID2', 'Item Category', 'Item title', 'Item description', 'Price'];
  57 +// //$content[] = ['ID', 'ID2', 'Item Category', 'Item title', 'Item description', 'Price'];
  58 +//
  59 +//// foreach ($this->getProducts() as $product) {
  60 +//// $this->createRow($product, $content);
  61 +//// }
  62 +//
  63 +// fputcsv($handle, $content);
  64 +// fclose($handle);
65 65  
66 66 print $dirName .'/'. $filename;
67 67 }
... ...