[FLOW3-general] 2 little Fluid questions

Johannes Steu typo at motiv-sport.de
Fri May 18 00:34:55 CEST 2012


Hello,

i got two little questions about fluid:

1) I got a <select> (not with the Select ViewHelper, it's "clean" html code.) The first option of this select area should be a null-value. When i'm sending the form to updateAction to update my object the old value stays inside the database but i'd ilke to have a null to mainly unset this attribute. 
Where can i put something like if(value=="").... Is it possible to do this in the initializeUpdateAction or can i handle this inside the fluid form?

2) When editing a Model on edit.html i got a <f:form.textfield property="startDate" id="startDate" /> which should contain a \DateTime-Value. I keep getting an Error like it's an object but not a string and so on. I tried some stuff with {category.startDate -> f:format.date(format:’d.m.Y’)} but i cant get ir working. I'd like to have on edit.html a value like d.m.Y inside the textfield. How can i do this?

Thank's a lot!


More information about the FLOW3-general mailing list