Adding Class Option For Element In Cform

Hello everybody!

When using CForm lack the ability to define an additional class for the <div> that contains form element

For example

$form = new CForm(array(

‘elements’=>array(

'rate'=&gt;array(


  'type'=&gt;'text',


  'size'=&gt;12,

[color="#0000FF"] ‘rowClass’=>‘someRowClass’,[/color]

),		

),

‘buttons’=>array(

'submitButton'=&gt;array(


  'type'=&gt;'submit',


),

),

), $model);

This definition will generate element’s row as follow:

<div class="row someRowClass">…</div>

and this will be usefull to style the row with css