Hello Yii friends...I am using
<?php echo CHtml::beginForm(array('setting/setname'), 'post', array('name' => 'savecommentary')); ?>
to create form but now i want to give css class in the form. but I am getting confused as well as i tried some ways it didn't work out.
Please help.
Thanks in Advance...
Sundar
Page 1 of 1
Chtml::beginform
#2
Posted 13 February 2013 - 02:13 AM
you can give it a class trough htmlOptions like following
echo CHtml::beginForm(array('setting/setname'), 'post', array('name' => 'savecommentary', 'class'=>'formCssClass'));
Share this topic:
Page 1 of 1

Help













