浏览代码

Upgrade forms.

mscherer 7 年之前
父节点
当前提交
7d59d2678c
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 2 2
      docs/Auth/MultiColumn.md
  2. 1 1
      docs/Behavior/Passwordable.md

+ 2 - 2
docs/Auth/MultiColumn.md

@@ -5,8 +5,8 @@ But often times you want to provide a login input field as combined one, so the
 
 For this make sure your login form contains:
 ```php
-echo $this->Form->input('login');
-echo $this->Form->input('password', ['autocomplete' => 'off']);
+echo $this->Form->control('login');
+echo $this->Form->control('password', ['autocomplete' => 'off']);
 ```
 
 Then set up the Auth component:

+ 1 - 1
docs/Behavior/Passwordable.md

@@ -78,7 +78,7 @@ class UsersController extends Controller {
 
 
 		if ($this->request->is(['put', 'post'])) {
-			$user = $this->Users->patchEntity($user, $this->request->data);
+			$user = $this->Users->patchEntity($user, $this->request->getData());
 			$user->role_id = Configure::read('Roles.user');
 
 			if ($this->Users->save($user)) {