[FrameworkBundle] Allowed "0" as a checkbox value in the php template.

This commit is contained in:
Jakub Zalas 2013-12-05 23:38:14 +00:00
parent 0c71cfa14b
commit 955e8cf084

View File

@ -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 ?>
/>