質問編集履歴
3
エラー内容を記載
test
CHANGED
File without changes
|
test
CHANGED
@@ -63,3 +63,9 @@
|
|
63
63
|
}
|
64
64
|
|
65
65
|
```
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
※エラー内容は以下になります。
|
70
|
+
|
71
|
+
Error: [MissingViewException] View file "Hoge/get_hoge.ctp" is missing.
|
2
Markdown記法に変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -24,7 +24,7 @@
|
|
24
24
|
|
25
25
|
■index.ctp側
|
26
26
|
|
27
|
-
|
27
|
+
```
|
28
28
|
|
29
29
|
<form name="hogehoge" action="getHoge" method="POST">
|
30
30
|
|
@@ -32,9 +32,13 @@
|
|
32
32
|
|
33
33
|
</form>
|
34
34
|
|
35
|
+
```
|
36
|
+
|
35
37
|
|
36
38
|
|
37
39
|
■hoge.php側
|
40
|
+
|
41
|
+
```
|
38
42
|
|
39
43
|
class hogeController extends TestController {
|
40
44
|
|
@@ -57,3 +61,5 @@
|
|
57
61
|
}
|
58
62
|
|
59
63
|
}
|
64
|
+
|
65
|
+
```
|
1
ソースの追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -17,3 +17,43 @@
|
|
17
17
|
|
18
18
|
|
19
19
|
ご教示のほど、よろしくお願いいたします。
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
※ソースを追記しました
|
24
|
+
|
25
|
+
■index.ctp側
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
<form name="hogehoge" action="getHoge" method="POST">
|
30
|
+
|
31
|
+
<button type="submit">検索</button>
|
32
|
+
|
33
|
+
</form>
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
■hoge.php側
|
38
|
+
|
39
|
+
class hogeController extends TestController {
|
40
|
+
|
41
|
+
public function getHoge() {
|
42
|
+
|
43
|
+
$data = $_GET;
|
44
|
+
|
45
|
+
$this->getHogeData($data);
|
46
|
+
|
47
|
+
}
|
48
|
+
|
49
|
+
|
50
|
+
|
51
|
+
private function getHogeData($data) {
|
52
|
+
|
53
|
+
// ここでデータ取得処理をしており、ここまでは問題ありません
|
54
|
+
|
55
|
+
// 取得した値をindex.ctpに設定したいです
|
56
|
+
|
57
|
+
}
|
58
|
+
|
59
|
+
}
|