[TYPO3-mvc] FLUID condition does not work with true/false
Michael Knoll
mimi at kaktusteam.de
Fri Aug 6 11:43:35 CEST 2010
Hallo list,
I have a problem concerning boolean values for conditions. Here is my
fluid code:
<f:if condition="{filter.validate} == false">
<div style="color: red">Validation Error: {filter.errorMessage}</div>
</f:if>
and here is my PHP code:
public function validate() {
return true;
}
This renders the <div> tag that should only be shown, if the method
returns false...
Now, if I use 1 / 0 everything works perfect:
<f:if condition="{filter.validate} == 0">
<div style="color: red">Validation Error: {filter.errorMessage}</div>
</f:if>
public function validate() {
return 1;
}
I tried TRUE / FALSE --> same problem... What am I doing wrong?
Thanks for your help!
Michael
More information about the TYPO3-project-typo3v4mvc
mailing list