質問編集履歴

1

質問に答えられないからもっとコードが欲しいとのこと。

2017/12/07 05:13

投稿

akobayashi
akobayashi

スコア15

test CHANGED
File without changes
test CHANGED
@@ -16,7 +16,7 @@
16
16
 
17
17
  ヴュー
18
18
 
19
- <form action="" method="POST">
19
+ <form action="" method="POST" enctype="multipart/form-data">
20
20
 
21
21
  <?=$this->Form->input('img_file_name',array('type' => 'file'));?>
22
22
 
@@ -53,3 +53,39 @@
53
53
  );
54
54
 
55
55
  ```
56
+
57
+
58
+
59
+ ```ここに言語を入力
60
+
61
+ 追記
62
+
63
+ コントローラー
64
+
65
+ public $uses = array('Bottom','KoChiku','Region','Koyou');
66
+
67
+ public $helpers = array('Common','Whitehole','UploadPack.Upload');
68
+
69
+ public $components = array('Session','Cookie','Email','Common');
70
+
71
+
72
+
73
+ public function index(){
74
+
75
+ if($this->data){
76
+
77
+ if($this->Bottom->save($this->data)){
78
+
79
+
80
+
81
+ }
82
+
83
+
84
+
85
+ }
86
+
87
+
88
+
89
+ }
90
+
91
+ ```