Advertisement
Guest User

Untitled

a guest
Dec 17th, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. <?= Html::activeCheckboxList($model, 'categories[news]', $model->categories2['news'], [
  2. 'item' => function($index, $label, $name, $checked, $value) use ($model) {
  3. $return = Html::checkbox($name, $checked, [
  4. 'value' => $value
  5. ]);
  6. return Html::tag('label', $return, ['class' => 'b-form__checkbox']);
  7. },
  8. ])?>
  9. <?= Html::activeCheckboxList($model, 'categories[photoreports]', $model->categories2['photoreports'], [
  10. 'item' => function($index, $label, $name, $checked, $value) use ($model) {
  11. $return = Html::checkbox($name, $checked, [
  12. 'value' => $value
  13. ]);
  14. return Html::tag('label', $return, ['class' => 'b-form__checkbox']);
  15. },
  16. ])?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement