From c3ea6e656d1bd4d6c51a9d08f45354ccb0f2cac0 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Sun, 3 Jul 2011 12:58:41 -0500 Subject: [PATCH] adding some comments to the form class. --- system/form.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/system/form.php b/system/form.php index 5d3c9d53..85335d38 100644 --- a/system/form.php +++ b/system/form.php @@ -25,6 +25,11 @@ public static function open($action = null, $method = 'POST', $attributes = arra } $attributes['action'] = HTML::entities(URL::to($action)); + + // ------------------------------------------------------- + // If the request method is PUT or DELETE, we'll default + // the request method to POST. + // ------------------------------------------------------- $attributes['method'] = ($method == 'GET' or $method == 'POST') ? $method : 'POST'; // -------------------------------------------------------