回答編集履歴

1

修正。

2015/12/24 09:13

投稿

hyper-drums-ko
hyper-drums-ko

スコア736

test CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ```php
4
4
 
5
- public function delete() {
5
+ public function delete($id = null) {
6
6
 
7
7
  if ($this->request->is('post'))
8
8
 
@@ -30,7 +30,7 @@
30
30
 
31
31
  {
32
32
 
33
- $data = $this->Post->findById($request['id']);
33
+ $data = $this->Post->findById($id);
34
34
 
35
35
  }
36
36