2016-06-21 78 views

回答

2

您可以直接將其作爲第二個參數:

CHtml::textArea('answer' . $no, $exam->answer, array(
    'rows' => 6, 'cols' => 50, 'class' => "form-control") 
); 

詳情請參閱CHtml::textArea

+0

非常感謝你。它正在工作 – Arya