2013-05-15 13 views

回答

0

只需設置htmlOptions 禁用= TRUE

radioButtonList

echo $form->radioButtonListRow($model, 'radioButtons', 
    array(
     'Option one', 
     'Option two', 
    ), 
    'htmlOptions'=>array('disabled'=>true) 
); 
0

,你可以嘗試使用像下面..

<?php 
    echo $form->radioButtonListRow($model, 'radioButtons', array(
     'Option one', 
     'Option two', 
    ), array('disabled' => true)); 
?> 

希望這將是對你有幫助....如果你遇到任何問題,那麼你就可以通知我..