Complex forms

Hi all.

Is it possible to have a CFormModel with "has_many" other CFormModel?

Something like.



class A


{


   public $name;


   public $b = array();


}


Or have 2 forms in the same page which are both validated?

Is like a form with 2 sub-form. Each one with they own validation rules.

nested form models is not supported currently. you may refer to the following article on how to use a single form with multiple models:

http://www.yiiframew…oc/cookbook/19/

Thank you for enlight me.

I didn't look in cookbook!

It will help me for my needs.

Well, is there a way to help Yii have such functions natively?

I don't know who is the lord of Yii and how they work.