From a15c7cb11fbf3a45492cf7cb0a04823d4321f3d5 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Tue, 11 Nov 2008 13:11:20 +0000 Subject: Change the PUT/DELETE tunneling param from __action to _method to be like Rails. --- core/controllers/rest.php | 2 +- core/views/welcome.html.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'core') diff --git a/core/controllers/rest.php b/core/controllers/rest.php index f307f86a..f0a2b341 100644 --- a/core/controllers/rest.php +++ b/core/controllers/rest.php @@ -74,7 +74,7 @@ abstract class REST_Controller extends Controller { return; } - switch ($this->input->post("__action")) { + switch ($this->input->post("_method")) { case "put": return $this->_put($resource); diff --git a/core/views/welcome.html.php b/core/views/welcome.html.php index f22f0b75..1180f475 100644 --- a/core/views/welcome.html.php +++ b/core/views/welcome.html.php @@ -186,7 +186,7 @@ - +
@@ -195,7 +195,7 @@ - +
-- cgit v1.2.3