Activecheckboxlist With Array

Hello everyone,

I’m in a situation where I have an attribute in a format shown below (it’s formatted that way with afterFind method) and where I want to use activeCheckBoxList. Can anyone help me to make that couse I’m loosing my mind. I’ve trying to make that for a few days but with no results. Value defines wether the checkbox is checked or not and label is…well…its label.


public $attribute = array(

    array('value' => 0, 'label' => 'A'),

    array('value' => 1, 'label' => 'B'),

    array('value' => 0, 'label' => 'C'),

);

Names are not important and they can be anything since the list will be formatted with beforeSave.

Thanks,

Damir