@@ -74,8 +74,8 @@ To customize the output, you can chain additional methods of [[yii\widgets\Activ
...
@@ -74,8 +74,8 @@ To customize the output, you can chain additional methods of [[yii\widgets\Activ
```
```
This will create all the `<label>`, `<input>` and other tags according to the [[yii\widgets\ActiveField::$template|template]] defined by the form field.
This will create all the `<label>`, `<input>` and other tags according to the [[yii\widgets\ActiveField::$template|template]] defined by the form field.
The name of the input field is determined automatically from the models [[yii\base\Model::formName()|form name] and attribute,
The name of the input field is determined automatically from the model's [[yii\base\Model::formName()|form name] and the attribute's name.
e.g. the name for the input field for the `username` attribute in the above example will be `LoginForm[username]` which will result in an array
For example, the name for the input field for the `username` attribute in the above example will be `LoginForm[username]`. This naming rule will result in an array
of all attributes for the login form to be available in `$_POST['LoginForm']` on the server side.
of all attributes for the login form to be available in `$_POST['LoginForm']` on the server side.
Specifying the attribute of the model can be done in more sophisticated ways. For example when an attribute may
Specifying the attribute of the model can be done in more sophisticated ways. For example when an attribute may