Multiple Form Processing

I want two step form processing.

Data should be saved once both form are field and validated.

And should not moved directly on form 2 until form1 filled and validated.

How can I achieve this using YII framework.

I suggest you use scenarios for any step ;)

Its very simple, try like this…

suppose, two model’s objects are $model1 and $model2 now before you can validate thess like…




$valid=$model1->validate();

			$valid=$model2->validate() && $valid;

if($valid)

{

//now save

}




I hope it will help you…thanks