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

Revision #20 has been created by rackycz on Sep 8, 2020, 7:40:23 PM with the memo:

Composer and PhpExcel
« previous (#19) next (#21) »

Changes

Title unchanged

Yii v2 snippet guide II

Category unchanged

Tutorials

Yii version unchanged

2.0

Tags unchanged

tutorial,beginner,yii2,snippets

Content changed

[...]
Following is my idea:

```php
ob_start();
ob_implicit_flush(false);
$writer->save(
$outputFileName'php://output');
$file = ob_get_clean();

return \Yii::$app->response->sendContentAsFile($file, 'file.xlsx',[
'mimeType' => 'application/application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
'inline' => false
[...]
4 0
3 followers
Viewed: 75 593 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