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 a name-value pair and is represented by a Setting
active record model. This kind of form is also often referred to as "tabular input". In contrast to this, handling different models of different kind, is handled in the section Complex Forms with Multiple Models.
The following shows how to implement tabular input with Yii.
There are three different situations to cover, which have to be handled slightly different:
In contrast to the single model forms explained be