i have list of checkbox in yii checkBoxList as below…
How can i generate same with bootstrap extension??
echo $form->checkBoxList($model,‘paymentMethodIds’,
CHtml::listData(
PaymentMethods::model()->findAll(),'id','name'),
array('template'=>'<div><span>{input}</span> <span>{label}</span></div>','checkAllLast'=>'false'));
I have tried using
echo $form->checkBoxListRow($model, ‘paymentMethodIds’, array(PaymentMethods::model()->findAll()));
but its not working.
PaymentMethods::model()->findAll() will return associative array of id,name
how can i display dynamic checkbox list