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?
Page 1 of 1
CForm vs. CRUD Modify CRUD form or build CForm?
#2
Posted 12 January 2010 - 04:12 PM
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
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
Share this topic:
Page 1 of 1

Help












