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

Changes

Title unchanged

Yii v2 snippet guide II

Category unchanged

Tutorials

Yii version unchanged

2.0

Tags unchanged

tutorial,beginner,yii2,snippets

Content changed

**Intro**
 
---
 
Hi. I had to split my article as max length was reached. Check my previous articles here (mainly the 1st one):
## My articles
 
Articles are separated into more files as there is the max lenght for each file on wiki.
-* [Yii v1 for beginners](https://www.yiiframework.com/wiki/25520/yii-v2-snippet-guidefor-beginners)
 
* [Yii v1 for beginners 2
](https://www.yiiframework.com/wiki/255462/yii-for-beginners-2)
 
* [Yii 
v2- snippet- guide)
 
- [
 I](https://www.yiiframework.com/wiki/25052/yii-for-beginnersv2-snippet-guide)
 
* [Yii v2 snippet guide II
](https://www.yiiframework.com/wiki/25058/yii-for-beginnersv2-snippet-guide-ii) -* [Yii v2 snippet guide III](https://www.yiiframework.com/wiki/4622567/yii-for-beginners-2](https://www.yiiframework.com/wiki/462/yii-for-beginners-2v2-snippet-guide-iii)
 
* [Začínáme s PHP frameworkem Yii2 (I) česky - YouTube](https://youtu.be/ub06hNoL8B8
)

**Connection to MSSQL**
[...]
// Details here:
// https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers#Downloads
//
 Yii::$app->response->headers->set('Content-Disposition','attachment; filename="hello.pdf"');

// Here is used the temporary stream
Yii::$app->response->stream = $stream;

// You can call following line, but you don't have to. Method send() is called automatically when current action ends:
[...]
4 0
3 followers
Viewed: 75 397 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