質問編集履歴
12
本文修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -24,7 +24,9 @@
|
|
24
24
|
|
25
25
|
|
26
26
|
|
27
|
-
ご存知の方がいらっしゃいましたら、ご教授
|
27
|
+
ご存知の方がいらっしゃいましたら、ご教授頂けますでしょうか。
|
28
|
+
|
29
|
+
よろしくお願い致します。
|
28
30
|
|
29
31
|
|
30
32
|
|
11
題名を修正
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
FuelPHP
|
1
|
+
FuelPHPで作成したAPIのレスポンス内のJsonの先頭に、セキュリティ対策用の文字列を付加したい
|
test
CHANGED
File without changes
|
10
リンクを修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -28,7 +28,7 @@
|
|
28
28
|
|
29
29
|
|
30
30
|
|
31
|
-
[
|
31
|
+
[リファレンス: / API Reference / ng / service components in ng / $http ](https://docs.angularjs.org/api/ng/service/$http)
|
32
32
|
|
33
33
|
|
34
34
|
|
9
リンクを修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -28,9 +28,7 @@
|
|
28
28
|
|
29
29
|
|
30
30
|
|
31
|
-
(参考)
|
32
|
-
|
33
|
-
[https://docs.angularjs.org/api/ng/service/$http
|
31
|
+
[参考](https://docs.angularjs.org/api/ng/service/$http)
|
34
32
|
|
35
33
|
|
36
34
|
|
8
urlをリンクに変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -30,7 +30,7 @@
|
|
30
30
|
|
31
31
|
(参考)
|
32
32
|
|
33
|
-
https://docs.angularjs.org/api/ng/service/$http
|
33
|
+
[https://docs.angularjs.org/api/ng/service/$http](http://)
|
34
34
|
|
35
35
|
|
36
36
|
|
7
余白削除
test
CHANGED
File without changes
|
test
CHANGED
@@ -38,10 +38,6 @@
|
|
38
38
|
|
39
39
|
<?php
|
40
40
|
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
41
|
class Controller_Api_Base extends Fuel\Core\Controller_Rest {
|
46
42
|
|
47
43
|
protected $format = 'json';
|
6
微修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -34,10 +34,6 @@
|
|
34
34
|
|
35
35
|
|
36
36
|
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
37
|
```
|
42
38
|
|
43
39
|
<?php
|
5
本文変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -12,17 +12,19 @@
|
|
12
12
|
|
13
13
|
|
14
14
|
|
15
|
-
|
15
|
+
`['one','two']`
|
16
16
|
|
17
|
-
|
17
|
+
のようなJsonを
|
18
|
+
|
19
|
+
`)]}',
|
20
|
+
|
21
|
+
['one','two']`
|
22
|
+
|
23
|
+
のようにしたいです。
|
18
24
|
|
19
25
|
|
20
26
|
|
21
|
-
‘)]}',
|
22
|
-
|
23
|
-
|
27
|
+
ご存知の方がいらっしゃいましたら、ご教授お願い致します。
|
24
|
-
|
25
|
-
{
|
26
28
|
|
27
29
|
|
28
30
|
|
4
本文変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -9,6 +9,20 @@
|
|
9
9
|
after($response)メソッドの中でJsonの先頭に文字列")]}',\n"を
|
10
10
|
|
11
11
|
付加したいです。
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
‘['one','two']
|
16
|
+
|
17
|
+
‘
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
‘)]}',
|
22
|
+
|
23
|
+
['one','two']
|
24
|
+
|
25
|
+
{
|
12
26
|
|
13
27
|
|
14
28
|
|
3
本文修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -4,15 +4,13 @@
|
|
4
4
|
|
5
5
|
|
6
6
|
|
7
|
-
以下のようなベースのコントローラー
|
7
|
+
以下のようなベースのコントローラーの
|
8
|
+
|
9
|
+
after($response)メソッドの中でJsonの先頭に文字列")]}',\n"を
|
10
|
+
|
11
|
+
付加したいです。
|
8
12
|
|
9
13
|
|
10
|
-
|
11
|
-
付加する文字列は、以下となります
|
12
|
-
|
13
|
-
。
|
14
|
-
|
15
|
-
")]}',\n"
|
16
14
|
|
17
15
|
(参考)
|
18
16
|
|
2
test
CHANGED
File without changes
|
test
CHANGED
@@ -5,6 +5,20 @@
|
|
5
5
|
|
6
6
|
|
7
7
|
以下のようなベースのコントローラーから、返す予定です。
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
付加する文字列は、以下となります
|
12
|
+
|
13
|
+
。
|
14
|
+
|
15
|
+
")]}',\n"
|
16
|
+
|
17
|
+
(参考)
|
18
|
+
|
19
|
+
https://docs.angularjs.org/api/ng/service/$http
|
20
|
+
|
21
|
+
|
8
22
|
|
9
23
|
|
10
24
|
|
1
test
CHANGED
File without changes
|
test
CHANGED
@@ -8,7 +8,9 @@
|
|
8
8
|
|
9
9
|
|
10
10
|
|
11
|
+
|
12
|
+
|
11
|
-
|
13
|
+
```
|
12
14
|
|
13
15
|
<?php
|
14
16
|
|
@@ -30,4 +32,4 @@
|
|
30
32
|
|
31
33
|
}
|
32
34
|
|
33
|
-
|
35
|
+
```
|