[TYPO3-mvc] flexform & model

Zalán Somogyváry zalan at gmx.net
Wed Aug 3 13:56:29 CEST 2011


Hi Stefan,

Am 03.08.2011 um 13:30 schrieb Stefan Franke:

> Hi Zalan,
> my flexform works just fine when calling it from the Controller, the ViewHelper [via $this->templateVariableContainer->get('settings')] or the Fluid template. So I guess I'm on the right track and that everything is ok with my flexform configuration.
> 
> I just don't seem to be able to access the flexform data from the Model (Classes/Domain/Model). Is this really working for you in the Model with just $this->settings?

Oh sorry, I was reading too fast.... Of course I am not accessing it in the Model, but in the controller and the template. Why would you like to access this data in the Model? This does not make much sense for me. If you need the data persistent than you can save it in the model by adding a field to it. Business logic should go into the controller...

Bye,
Zalán


More information about the TYPO3-project-typo3v4mvc mailing list