yii2: how to response image and let browser show it?

后端 未结 5 2047
攒了一身酷
攒了一身酷 2021-01-05 02:37

the same work can be done by follow code:

header(\'Content-Type:image/jpeg\');
readfile(\'a.jpg\');

but now I really confused by Yii2\'s

5条回答
提交回复
热议问题