What is the purpose of yii giving two types of models, one for form and other for active records which involves db actions?
What is the purpose of yii giving two types of models, one for form and other for active records which involves db actions?
CActiveRecord is a model related to a database table, it has the functions for manage a model (rules, activeLabels) and the functions for work with database (find, save, delete).
CFormModel is a model without database, it has only the first functions (rules, activeLabels)
You may check out the description in the guide: http://www.yiiframework.com/doc/guide/1.1/en/basics.model
thank you… zaccaria & Y!! got the point!!