Commit c3ea6e65 by Taylor Otwell

adding some comments to the form class.

parent 1375ff98
......@@ -25,6 +25,11 @@ class Form {
}
$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';
// -------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment