Difference between #15 and #16 of
Yii v2 snippet guide II

Revision #16 has been created by rackycz on Sep 8, 2020, 7:26:15 PM with the memo:

Composer and PhpExcel
« previous (#15) next (#17) »

Changes

Title unchanged

Yii v2 snippet guide II

Category unchanged

Tutorials

Yii version unchanged

2.0

Tags unchanged

tutorial,beginner,yii2,snippets

Content changed

[...]
header('Content-Disposition: attachment;filename="filename.xlsx"');
$writer->save('hello_world.xlsx');
exit();
```

Thanks to [DbCreator](https://forum.yiiframework.com/t/yii2-phpoffice-phpspreadsheet-src-phpspreadsheet-shared-ole-pps-root-php-on-line-292-headers-already-sent/126617) for the latter approach.
 Other ways did not work for me.
4 0
3 followers
Viewed: 75 603 times
Version: 2.0
Category: Tutorials
Written by: rackycz
Last updated by: rackycz
Created on: Aug 26, 2020
Last updated: 3 years ago
Update Article

Revisions

View all history