[TYPO3-mvc] checkbox problem
Valentin Zickner
typo3 at joan.coderworks.de
Wed Aug 17 12:03:12 CEST 2011
Hi Christian,
> Do you know why this prevents the type error?
In the ViewHelper
(fluid/Classes/ViewHelpers/Form/CheckboxViewHelper.php, Line ~90) they
prove if checked is NULL (not set in the template). When checked is
NULL, they call a method called getPropertyValue() and prove the type
(boolean or array, but you have an integer 0 or 1). If the value is not
NULL (set in the template), they skip this part and directly prove "if
($checked) ...".
regards,
Valentin
More information about the TYPO3-project-typo3v4mvc
mailing list