Difference between #50 and #55 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)
 
* [Yii2 App Basic Plus](https://gitlab.com/radin.cerny/yii2-app-basic-plus) ... a compilation of the most used functionalities
 
* [VueJs3 PWA demo plus](https://gitlab.com/radin.cerny/vuejs3-pwa-demo-plus) ... a basic installable PWA project (written in JavaScript, VueJS3) for my REST offline clients (only 1 data transfer per day
)

**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: 88 427 times
Version: 2.0
Category: Tutorials
Written by: rackycz rackycz
Last updated by: rackycz rackycz
Created on: Aug 26, 2020
Last updated: 2 days ago
Update Article

Revisions

View all history