How To Change The Css Of Cactiveform?

I would like to change CActiveForm to be more flexible but dont know how to do it. If anyone try it before please tell me that is it possible or not?

Hello. Could you please elaborate what “more flexible” means ? :)

But if you want to change the css of CActiveForm you could just use the htmlOptions property :




<?php 

$form = $this->beginWidget('CActiveForm', array(

    'id'=>'form-id',

    'enableClientValidation'=>true,

    'clientOptions'=>array(

        'validateOnSubmit'=>true,

    ),

    'htmlOptions'=>array(

        'class'=>'my-form-class',

    ),

));

?>



Thank you, I will try it :)