Displaying Checkbox Input Form With Clistview & Yiibootstrap

Hi All,

I want to display items stored in database using Clistview and make them as checkbox selection input form.

However, using Yiibootstrap extension, how can I pass the $model variable to ‘ItemView’, since to generate checkbox, the following syntax is used:

<?php echo $form->checkboxRow($model, ‘checkbox’); ?>

And an error is generated telling that system can’t find $model

Thank you so much for your help!

Just found a solution!

Pass anything you like through parameter "viewData"

‘viewData’ => array( ‘switch’ => true, ‘blah’ => 123 ),

*Keep saying to myself RTFM,RTFM,RTFM!