回答編集履歴
1
修正。
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($
|
33
|
+
$data = $this->Post->findById($id);
|
34
34
|
|
35
35
|
}
|
36
36
|
|