yii2 checkbox not working its always submit 0 in POST
<p>I have a simple field <code>is_active</code> in form <code>tinyint</code> in db also defined as integer in rules when I submit form checkbox checked or unchecked it's always submitting 0.</p>

<pre><code>echo $form-&gt;field($model, 'is_active')-&gt;checkbox();
</code></pre>