Hi,
I’ve just migrated to Yii 1.1.1 from Yii 1.1.0 and got a problem with CForm.
Yii 1.1.0 code:
$config = array(
'attributes'=>array(
'class'=>'document',
),
'showErrorSummary'=>true,
'elements'=>$elements,
'buttons'=>array(
'document'=>array(
'type'=>'submit',
'label'=>'Save',
),
),
Same Yii 1.1.1 code will cause an exception:
If I delete “class” attribute, then everything works fine. So, am I missing something? And how should I set form’s class attribute?