[TYPO3-mvc] Tx_Extbase_MVC_Exception_InfiniteLoop - again

Bernhard Kraft kraftb at think-open.at
Thu May 6 10:59:16 CEST 2010


Thilo Schneider wrote:

> If there is a way to create this behaivour using the standard extbase 
> handling, I will greatfully adapt it. However, my current solution at 
> least acts as desired ;)

I would do it the following way: Have all fields using the "property=" parameter
and have respective properties in the data model. But then define the getDatum()
getter so it performs your data conversion stuff. So you would let those data
transformations up to the data model, not the controller.

I am not absolutely sure, but if there is no data-field "vonhour" defined in your
TCA the extbase classes will not try to store this value when persisting your
data. Any by defining a custom getter for the "datum" field, which takes into
account all your special need you avoid moving this data-dependen code into the
controller.

Of course if you need to take different actions depending on the "vonhour" etc.
parameters you could put pieces in the controller.


greets,
Bernhard



More information about the TYPO3-project-typo3v4mvc mailing list