|
@@ -117,7 +117,7 @@ class Form extends Link implements \ArrayAccess
|
|
*/
|
|
*/
|
|
public function getFiles()
|
|
public function getFiles()
|
|
{
|
|
{
|
|
- if (!in_array($this->getMethod(), array('post', 'put', 'delete'))) {
|
|
|
|
|
|
+ if (!in_array($this->getMethod(), array('POST', 'PUT', 'DELETE'))) {
|
|
return array();
|
|
return array();
|
|
}
|
|
}
|
|
|
|
|
|
@@ -182,7 +182,7 @@ class Form extends Link implements \ArrayAccess
|
|
{
|
|
{
|
|
$uri = parent::getUri();
|
|
$uri = parent::getUri();
|
|
|
|
|
|
- if (!in_array($this->getMethod(), array('post', 'put', 'delete')) && $queryString = http_build_query($this->getValues(), null, '&')) {
|
|
|
|
|
|
+ if (!in_array($this->getMethod(), array('POST', 'PUT', 'DELETE')) && $queryString = http_build_query($this->getValues(), null, '&')) {
|
|
$sep = false === strpos($uri, '?') ? '?' : '&';
|
|
$sep = false === strpos($uri, '?') ? '?' : '&';
|
|
$uri .= $sep.$queryString;
|
|
$uri .= $sep.$queryString;
|
|
}
|
|
}
|
|
@@ -210,7 +210,7 @@ class Form extends Link implements \ArrayAccess
|
|
return $this->method;
|
|
return $this->method;
|
|
}
|
|
}
|
|
|
|
|
|
- return $this->node->getAttribute('method') ? strtolower($this->node->getAttribute('method')) : 'get';
|
|
|
|
|
|
+ return $this->node->getAttribute('method') ? strtoupper($this->node->getAttribute('method')) : 'GET';
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|