Closed GoogleCodeExporter closed 8 years ago
This belongs to core.
Original comment by qiang.xue
on 19 Feb 2010 at 10:33
It turns out, the documentation is wrong. You must specify an additional
parameter of 'model' per each model's element
set.
i.e.-
----------------------------------------------------------------
$formConfig = array(
'elements'=>array(
'user'=>array(
'type'=>'form',
'title'=>'Login Information',
'elements'=>array(
'username'=>array(
'type'=>'text',
),
'password'=>array(
'type'=>'password',
),
),
'model'=>new User,
),
'person'=>array(
'type'=>'form',
'title'=>'Employee Information',
'elements'=>array(
'field1'=>array(
'type'=>'text',
),
'field2'=>array(
'type'=>'text',
),
),
'model'=>new Person,
),
),
'buttons'=>array(
'register'=>array(
'type'=>'submit',
'label'=>'Register',
),
),
);
Original comment by intel352
on 19 Feb 2010 at 10:35
Original issue reported on code.google.com by
intel352
on 19 Feb 2010 at 10:24