質問編集履歴
1
ソースコード追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -24,7 +24,31 @@
|
|
24
24
|
|
25
25
|
|
26
26
|
|
27
|
+
|
28
|
+
|
29
|
+
View/Hogehoge/index.ctp
|
30
|
+
|
31
|
+
```javascript
|
32
|
+
|
33
|
+
$scope.clickb = function() {
|
34
|
+
|
35
|
+
$('#iframe_id')[0].contentDocument.location.replace('/Hogehoge/download_ajax');
|
36
|
+
|
37
|
+
}
|
38
|
+
|
39
|
+
```
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
Controller/HogehogeController
|
44
|
+
|
27
45
|
```php
|
46
|
+
|
47
|
+
function download_ajax(){
|
48
|
+
|
49
|
+
$this->download('hogehoge.docx');
|
50
|
+
|
51
|
+
}
|
28
52
|
|
29
53
|
function download($file_name = null) {
|
30
54
|
|