title: Populate values to checkbox while editing in zend framework
body: <p>I am trying to populate the values into check box. I want check box to be checked when there is value stored in database.</p>
  
  <p>This is my code in form:</p>
  
  <pre><code>$form ['test_1'] = new Zend_Form_Element_Checkbox('test_1');
  $form['test_1']-&gt;setLabel('test1')-&gt;setCheckedValue('1');
  
  $form ['test_2'] = new Zend_Form_Element_Checkbox('test_2');
  $form['test_2']-&gt;setLabel('test2')-&gt;setCheckedValue('2');
  </code></pre>
  
  <p>If there is value <code>1</code> in database i want first check box to be checked and if its <code>2</code> then 2nd checkbox needs to be checked.</p>
  
  <p>What do i need to do in the controller.</p>
  
  <p>Could anyone please help me on this issue.</p>