I have created a check-box input as type Boolean for storing values as dishcharged - checked or unchecked. Checked will store 1 and unchecked will store 0.
Now I wan
If you consistently display booleans the same way in your app, you can also define a global boolean formatter:
$config = [ 'formatter' => [ 'class' => 'yii\i18n\Formatter', 'booleanFormat' => [' no', ' Yes'], ], ];
Then add your column:
'discharged:boolean',