How to use a single form to collect data for two or more models?

Comparing #2 with #3

Revision #3 was created by PoL PoL on Mar 11, 2009, 6:54:35 PM.

Review by cyberpol

Content

[...]
</form>
```

The above approach can also be used if we have more than two models to deal with.

[hr] Now, since version 1.0.3 and the `_form.php` view things change a litle. Folowing the example, we need to redlclare en the `create` view the parameters passed to the `create` view so the `_form` view can use them. ~~~
 
```php

<h2>Create view</h2>
[...]
'update'=>false,
)); ?>
~~~``` And in the `_form` work as ever (i.e. we can use $a and $b)