CFormModel->getAttribute

Dear all,

CFormModel has the method getAttributes() but not getAttribute().

It could be nice to have the same as CActiveRecord.

thanks for the good work of Yii.

why not just use $model->attribute? or $model->{‘attribute’}?

Yes, of course I used it ($model->{$attribute}).