CForm vs. CRUD

When exactly would you use CForm over the CRUD output? I have always just taken the CRUD code as a starting point and modified it to fit my needs. I’m a little confused what the difference is. I haven’t gotten into CForm yet. Should I? Also, would it be crazy to ask that the CRUD command simple builds CForm based scripts?

Hi

CActiveRecords can be used for 1:1 input operations. Like storing a persons name and email.

But lets say based on one entry form you need to update several different CActiveRecords. Then I would use a CForm to validate that input and transfer it to the individual active records using the setAttributes…

nz