Make display inline radioButtonList on Yii Framework

By Default Yii display radioButtonList not inline like this :
$form->radioButtonList($model, 'gender', array('M' => 'Male', 'F' => 'Female'))

Change Code like this
$form->radioButtonList($model, 'gender', array('M' => 'Male', 'F' => 'Female'), array( 'labelOptions' => array('style' => 'display:inline'), 'separator' => ' '))
And Voila ... ! Thank's

Comments

Popular posts from this blog

Fail Running Glassfish server on port 8080