title: How to setup checkBox value on yii
body: <p>My DB column name <strong>subscribed</strong> tinyint(1),</p>
  
  <p>I want if checkBox is checked then value send 1 if not checked then value send 0.</p>
  
  <p>This is my code-</p>
  
  <pre><code>&lt;?php echo $form-&gt;checkBox($model,'subscribed'); ?&gt;
  </code></pre>
  
  <p>Please help.</p>