diff --git a/src/Template/Bake/default/actions/controller_actions.ctp b/src/Template/Bake/default/actions/controller_actions.ctp index 5f65b54fce3..960886adbf5 100644 --- a/src/Template/Bake/default/actions/controller_actions.ctp +++ b/src/Template/Bake/default/actions/controller_actions.ctp @@ -132,7 +132,7 @@ $allAssociations = array_merge( */ public function delete($id = null) { $ = $this->->get($id); - $this->request->allowMethod('post', 'delete'); + $this->request->allowMethod(['post', 'delete']); if ($this->->delete($)) { $this->Flash->success('The has been deleted.'); } else {