Model Problem?


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.


Hello. Scenarios are your friends:

Thanks, this looks to solve the problem :)