minor doc fix.

This commit is contained in:
Qiang Xue
2014-02-15 14:18:12 -05:00
parent d8836f637e
commit eeff0ea619

View File

@ -128,10 +128,10 @@ div.required label:after {
}
```
Handling variable number of models with a single form
-----------------------------------------------------
Handling multiple models with a single form
-------------------------------------------
Sometimes you need to handle multiple models of the same kind in a signle form. For example, multiple settings where
Sometimes you need to handle multiple models of the same kind in a single form. For example, multiple settings where
each setting is stored as name-value and is represented by `Setting` model. The
following shows how to implement it with Yii.
@ -188,4 +188,4 @@ ActiveForm::end();
```
Here for each setting we are rendering name and an input with a value. It is important to add a proper index
to input name since that is how `loadMultiple` determines which model to fill with which values.
to input name since that is how `loadMultiple` determines which model to fill with which values.