[TYPO3-mvc] How to create an edit form with a DateTime property?

Xavier Perseguers typo3 at perseguers.ch
Fri Jul 24 17:57:26 CEST 2009


Hi,

Is this already supported? I get a warning (Warning: htmlspecialchars() 
expects parameter 1 to be string, object given in 
/path/to/fluid/Classes/Core/ViewHelper/TagBuilder.php on line 159)with 
TagBuilder.php) when using this in my view:

<label for="releaseDate">Released</label>
<f:form.textbox property="releaseDate" />

releaseDate being a DateTime.

And if I do not use this form but send data myself using a POST method, 
I get an error that the given argument is of type string while a 
DateTime is expected.

What did I miss?

-- 
Xavier Perseguers
http://xavier.perseguers.ch/en

One contribution a day keeps the fork away


More information about the TYPO3-project-typo3v4mvc mailing list