I am trying to apply a CSS class to CHtml::beginForm() however it’s not accepting it. I am trying as below.
<?php echo CHtml::beginForm(array('class'=>'my-class')); ?>
Tried this as well
<?php echo CHtml::beginForm(array('', 'post', 'class'=>'my-class')); ?>
Apparently, that’s doesn’t seem to be the right way of doing it but couldn’t find any other way of doing it.