Since the last update from SVN the CForm class doenst’t accept any “attributes” array. I’ve tried to change it to “htmlOption”, but if I set
‘htmlOption’ => array(‘id’ => ‘myForm’)
the Id wouldn’t be assigned to the form.
Since the last update from SVN the CForm class doenst’t accept any “attributes” array. I’ve tried to change it to “htmlOption”, but if I set
‘htmlOption’ => array(‘id’ => ‘myForm’)
the Id wouldn’t be assigned to the form.
It’s htmlOptions
yes, you are right. but “id” in htmlOptions doens’t work
Set the id of the widget to the desired id of the html tag, and that should work. You can’t set it via htmlOptions by design