previous topic was about removing the default <br>, so far this problem is fixed. but i have troubles fetching the values form the checkboxes.
In the Model I try to add the values to the database in the afterSave() function. For debugging I used $this->Categories, but this will print nothing.
when I do a print_r($_POST) I see an array key Categories that contain the array with the categories id's from the checkboxes.
Thank you in advance
The Categories will be saved in another table so I created a public $Categories in the top of the model file.
<?php
echo CHtml::activeCheckboxList(
$daytrip,
'Categories',
CHtml::listData(
Category::model()->findAll(),
'IdCategory',
'Category'
),
array('template' => '<li>{input} {label}</li>',
'separator' => '',
'checkAll' => 'Alle rubrieken'
)
);
?>

Help














