Model Problem?

Hi,

I have one model called account that models my accounts table however I want to break the updates up. For instance I have a link that goes to update the first and last name and a link that goes to update their password. However when I submit, its asking for the password on the validate model obviously when I am on the update details page. I could break the table into two models but this seems unnecessary. Whats the usual work around for this in yii. I am using the CCompareValidator for the password fields.

Ian

Hello. Scenarios are your friends:

http://www.yiiframework.com/wiki/266/understanding-scenarios/

Thanks, this looks to solve the problem :)