Difference between #20 and #21 of
Yii v2 snippet guide II

Revision #21 has been created by rackycz on Sep 8, 2020, 7:41:46 PM with the memo:

Composer and PhpExcel
« previous (#20) next (#22) »

Changes

Title unchanged

Yii v2 snippet guide II

Category unchanged

Tutorials

Yii version unchanged

2.0

Tags unchanged

tutorial,beginner,yii2,snippets

Content changed

[...]
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.

Following is my idea
 which originates in method renderPhpFile() from Yii2:

```php
ob_start();
ob_implicit_flush(false);
$writer->save('php://output');
[...]
4 0
3 followers
Viewed: 68 723 times
Version: 2.0
Category: Tutorials
Written by: rackycz
Last updated by: rackycz
Created on: Aug 26, 2020
Last updated: 2 years ago
Update Article

Revisions

View all history