Yii Framework Forum: Example of using subforms - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Example of using subforms Rate Topic: -----

#1 User is offline   jonupm 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 09-October 09

Posted 15 December 2009 - 01:16 PM

I notice on the documentation for CForm that "Sub-forms are mainly used to handle multiple models. For example, in a user registration form, we can have the root form to collect input for the user table while a sub-form to collect input for the profile table."

How are subforms contructed in Yii? Any examples out there?

Thanks,
Jon
0

#2 User is offline   jonupm 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 09-October 09

Posted 15 December 2009 - 01:24 PM

This example is close:
http://www.yiiframew...oc/cookbook/29/
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users