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!
Page 1 of 1
Displaying Checkbox Input Form With Clistview & Yiibootstrap
#2
Posted 07 February 2013 - 01:18 AM
Just found a solution!
Pass anything you like through parameter "viewData"
'viewData' => array( 'switch' => true, 'blah' => 123 ),
*Keep saying to myself RTFM,RTFM,RTFM!
Pass anything you like through parameter "viewData"
'viewData' => array( 'switch' => true, 'blah' => 123 ),
*Keep saying to myself RTFM,RTFM,RTFM!
Share this topic:
Page 1 of 1

Help











