adding some comments to the form class.
This commit is contained in:
parent
1375ff98f2
commit
c3ea6e656d
|
@ -25,6 +25,11 @@ public static function open($action = null, $method = 'POST', $attributes = arra
|
||||||
}
|
}
|
||||||
|
|
||||||
$attributes['action'] = HTML::entities(URL::to($action));
|
$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';
|
$attributes['method'] = ($method == 'GET' or $method == 'POST') ? $method : 'POST';
|
||||||
|
|
||||||
// -------------------------------------------------------
|
// -------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue