[TYPO3-mvc] desperation with f:form.checkbox

Philipp philippwrann at gmx.at
Fri May 3 11:09:26 CEST 2013


Hi

I really thought i finally managed to work with fluid. Having to write a viewhelper for each and every babyshit requirement seems okay to me.... But what really makes me freak out is the f:form.checkbox viewhelper

No matter how i want to use it, everytime it throws me some other error.

This time a assign an array to the view set it as object for my form-viewhelper. Just like:
<f:form object="{search}" objectName="search">

Okay, then i need this checkbox and place it like
<f:form.checkbox property="filtergroups.2" value="{category.uid}"/>

In my controller i assign the filtergroups-property as array to search. For each filtergroup i have set in my plugin i additionally assign one array to the filtergroups array, makes my search-property looks like:
search [array]
- filtergroups [array]
-- 0 [array]
-- 1 [array]
-- 2 [array]

so search.filtergroups.2 is definitly an array, if i do a f:debug i get array (empty)

But anyway...... the checkbox viewhelper tells me:
Checkbox viewhelpers can only be bound to properties of type boolean or array. Property "filtergroups.2" is of type "NULL"

I really have to say: I dont have time for those fluid problems anymore.
Can someone tell me why this happens at that point?

#

i mean, a template engine is supposed to make templating easier... i really appreciate the work you put into the typo3 project but why didnt you just use Twig or something really approved? Fluid is completely underpowered and also pretty slow.


More information about the TYPO3-project-typo3v4mvc mailing list