Merge branch 'request-params-refactoring' of github.com:cebe/yii2 into cebe-request-params-refactoring

Conflicts:
	framework/CHANGELOG.md
This commit is contained in:
Qiang Xue
2014-01-26 17:41:14 -05:00
16 changed files with 122 additions and 135 deletions

View File

@ -237,7 +237,7 @@ class BaseHtml
if ($request instanceof Request) {
if (strcasecmp($method, 'get') && strcasecmp($method, 'post')) {
// simulate PUT, DELETE, etc. via POST
$hiddenInputs[] = static::hiddenInput($request->restVar, $method);
$hiddenInputs[] = static::hiddenInput($request->methodVar, $method);
$method = 'post';
}
if ($request->enableCsrfValidation && !strcasecmp($method, 'post')) {