Hi guys, I have a question how I can make chackeboxes for column in crud. I have column type boolean and in crud i have 1 or 0 but I want give a checkboxes with values 1 or 0 and when click in checkbox it will change for 1 or 0 any ideas how I can do it ?
Can you be more specific?
array(
'class'=>'CCheckBoxColumn', 'selectableRows'=>2,
),
To be more complete :
Usin CGridView, like in this page :
$this->widget('zii.widgets.grid.CGridView', array(
'dataProvider'=>$dataProvider,
'columns'=>array(
.
. (your columns)
.
array(
'class'=>'CCheckBoxColumn', 'selectableRows'=>2,
),
),
));
Of course, you can use a variable for the columns array,