title: How to make checkbox check by default in yii while using single form for create and update
body: <p>I am using single form for creating and updating a form.I need checkbox checked by default in the following  form </p>
  
  <pre><code>&lt;div class="row" style='float:left;;margin-left:5px'&gt;
          &lt;?php echo '&lt;span for="label" style="margin-bottom:5px;font-size: 0.9em;font-weight: bold;"&gt;Label&lt;/span&gt;&lt;br /&gt;'; ?&gt;
          &lt;?php echo $form-&gt;checkBox($model,'label_name',array('value'=&gt;1,'uncheckValue'=&gt;0,'checked'=&gt;'checked','style'=&gt;'margin-top:7px;')); ?&gt;
          &lt;?php echo $form-&gt;error($model,'label_name'); ?&gt;
      &lt;/div&gt;
  </code></pre>
  
  <p>i am using above code to achieve the same purpose i am not getting the result as expected. While updating the form it shows checked even though  it was unchecked</p>