override addCheckboxList add htmlId element
- David Matějka
- Moderator | 6445
hi, you can set id
attribute for each input using this:
$form->addCheckboxList('test', null, ['a' => 'hello a', 'b' => 'hello b'])
->getControlPrototype()->addAttributes(['id:' => ['a' => 'idA', 'b' => 'idB']]);