Files
yii2/docs/guide-zh-CN/input-multiple-models.md
2015-03-10 16:58:10 +08:00

36 lines
709 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Complex Forms with Multiple Models
==================================
在复杂的用户界面可能会发生,用户在表单中填写数据
后将其保存在数据库的不同表中。yii形式的表单与单模型表单相比
可以让你用更加简单的方法来创建。
Same as with one model you follow the following schema for validation on the server side:
1. 实例化模型类
2. 用输入数据填充模型属性
3. 验证所有模型
4. 如果所有模型验证通过,则保存它们
5. 如果验证失败或没有提交数据display the form by passing all model instances to the view
在下文中我们展示了一个在表单中使用多模型的例子... TBD
多模型实例
---------------
> 注意:这部分正在开发中。
>
> 还没有内容。
TBD
Dependend models
----------------
> 注意:这部分正在开发中。
>
> 还没有内容。
TBD