Difference between #49 and #50 of
Yii v2 snippet guide II

Revision #50 has been created by rackycz on Oct 11, 2020, 5:35:09 PM with the memo:

base64 stream download
« previous (#49) next (#51) »

Changes

Title unchanged

Yii v2 snippet guide II

Category unchanged

Tutorials

Yii version unchanged

2.0

Tags unchanged

tutorial,beginner,yii2,snippets

Content changed

[...]
$query->andFilterWhere(['like', 'table.column', $this->company_name]);
}
}
```

**Sending
binary data as file to the browser - decoded base64**
---
[...]
// https://www.yiiframework.com/doc/api/2.0/yii-web-response#sendContentAsFile()-detail
// return Yii::$app->response->send();

 
```
 
 
**
Note:** You can add more headers if you need. Check my previous article (linked above).
 
 
```
4 0
3 followers
Viewed: 75 393 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