no download (file only)
This commit is contained in:
parent
49748484e0
commit
9bd6b5083a
|
@ -37,7 +37,7 @@
|
||||||
=========================================================*/
|
=========================================================*/
|
||||||
/* (1) Headers */
|
/* (1) Headers */
|
||||||
header('Content-Type: text/calendar; charset=utf-8');
|
header('Content-Type: text/calendar; charset=utf-8');
|
||||||
header('Content-Disposition: attachment; filename='.$this->diplome_id.'.ics');
|
// header('Content-Disposition: attachment; filename='.$this->diplome_id.'.ics');
|
||||||
|
|
||||||
/* (2) Body */
|
/* (2) Body */
|
||||||
readfile($file_name);
|
readfile($file_name);
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
"arguments": {}
|
"arguments": {}
|
||||||
},
|
},
|
||||||
|
|
||||||
"/ics/{diplome_id}": {
|
"/ics/{diplome_id}.ics": {
|
||||||
"methods": ["GET"],
|
"methods": ["GET"],
|
||||||
"controller": "ics:download",
|
"controller": "ics:download",
|
||||||
"arguments": {
|
"arguments": {
|
||||||
|
|
Loading…
Reference in New Issue