Hello,
I have a activeCheckBoxList :
...
echo $page->page_id.' <br />';
...
foreach ($dataProfil as $profil) {
$profil->profil_id;
echo '<div class="adroita">';
echo CHtml::activeCheckBoxList($modelDroit, 'listDroits', $dataDroits,array('style'=>'width:25px'));
echo '</div>';
}
And I would like to add some information that I can use after submit,
for exemple I would like do someting like that:
<input style="width:25px" id="AdAdroita_listDroits_0" value="442dcb720bd940979062aa7a38f24ec9|4|12" type="checkbox" name="AdAdroita[listDroits][]"
value="442dcb720bd940979062aa7a38f24ec9|4|12
the first(442dcb720bd940979062aa7a38f24ec9) value is id of Droit
the second(4) value is id of page ($page->page_id)
the third (12)id is value of profil ($profil->profil_id)
any help ?
thank’s
Nath
edit: maybe I can do somethin with dataDroits
$modelDroit = new AdAdroita();
$listDroits = AdDroit::model()->findAll();
$dataDroits = CHtml::listData($listDroits, 'droit_id', 'nom');