Revision #8 has been created by nups on Dec 21, 2010, 5:18:48 AM with the memo:
// _form.php
« previous (#7) next (#9) »
Changes
Title
unchanged
How to use a single form to collect data for two or more models?
Category
unchanged
Tutorials
Yii version
unchanged
Tags
unchanged
Content
changed
[...]
```php
<?php echo CHtml::form(); ?>
//create.php
<?php echo $this->renderPartial('_form', array('a'=>$a,'b'=>$b)); ?>
// _form.php
<?php echo CHtml::errorSummary(array($a,$b)); ?>
...input fields for $a, $b...
</form>[...]