Multiple Page Forms


i have to create a form of two pages,i have created two view,two model file and one db table for this,in the first page after entering the data and clicking on next page button it goes to next page(i.e data is to continued)

after submission of data in second page,the data of first page is stored in separate id ( 1)of db table and the data of second page is stored in someother id( 2) of db table.

But i want it to be stored in the same id of db table because both the page datas are of same persons.

please can anyone help me as i am new to yii.

Thank You,

I think you should not use 2 models for this but 1. Look for ‘scenarios’ you can apply on a model. This way you can split up your form in two pages but still validate.