[FrameworkBundle] Allowed "0" as a checkbox value in the php template.
This commit is contained in:
parent
0c71cfa14b
commit
955e8cf084
@ -1,5 +1,5 @@
|
||||
<input type="checkbox"
|
||||
<?php echo $view['form']->block($form, 'widget_attributes') ?>
|
||||
<?php if ($value): ?> value="<?php echo $view->escape($value) ?>"<?php endif ?>
|
||||
<?php if (strlen($value) > 0): ?> value="<?php echo $view->escape($value) ?>"<?php endif ?>
|
||||
<?php if ($checked): ?> checked="checked"<?php endif ?>
|
||||
/>
|
||||
|
Reference in New Issue
Block a user