質問編集履歴
1
クラスを追加致しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -9,16 +9,26 @@
|
|
9
9
|
|
10
10
|
###該当のソースコード
|
11
11
|
```
|
12
|
+
|
13
|
+
class debugController extends commonController{
|
14
|
+
function __constract(){
|
15
|
+
}
|
16
|
+
|
17
|
+
function action_index(){
|
18
|
+
}
|
19
|
+
|
12
|
-
function action_debugFile(){
|
20
|
+
function action_debugFile(){
|
13
21
|
self::debugFile();
|
14
22
|
exit;
|
15
23
|
}
|
24
|
+
|
16
|
-
public function debugFile(){
|
25
|
+
public function debugFile(){
|
17
26
|
$file = 'test.txt';
|
18
27
|
$current = file_get_contents($file);
|
19
28
|
$current .= "John Smith\n";
|
20
29
|
file_put_contents($file, $current);
|
21
30
|
}
|
31
|
+
}
|
22
32
|
```
|
23
33
|
###補足情報(言語/FW/ツール等のバージョンなど)
|
24
34
|
debugFileを実行しブラウザではエラーなどは出てないが、test.txtには書き込まれていないのでその原因を知りたいです。プログラム初心者の為、質問に不備があるかもしれませんが、ご教授くださいませ。
|