title: How to set checkbox value to checked in zend framework 2?
body: <p>I am wondering how to set the checkbox value of a zend form element to 'checked'?
  I went in my Debug-11-condition so I would expect to see an active arrow in my box. Unfortunately the box remains empty.</p>
  
  <pre><code>$room = $this-&gt;getRoomTable()-&gt;getRoom($roomId);
  $roomForm-&gt;bind($room);
  $lightOneValue = $room-&gt;getLighsone();
  if ($lightOneValue == "100"){
      Debug::dump('11');
      $roomForm-&gt;get('lightone')-&gt;setChecked(true);
  } else { ...
  </code></pre>