[TYPO3-mvc] Fluid: Access to the original object passed as content of a viewHelper?
Franz Koch
typo3.RemoveForMessage at elements-net.de
Fri Jan 29 12:07:22 CET 2010
Hi Masi,
>> Please keep me updated how this turns out. I already had a look at your
>> draft in your ballroom dancing extension.
>
> But don't hold your breath. I'm going on vacation tomorrow.
I'm using the ugly yet working way with the translation viewHelper for
now - time's running out. Btw - have fun in your vacation (I could also
need some)
> Anyway, currently I play with a factory of some sorts and a dumb value object. The object will get
> "raw" value, label in the constructor and has ther getters getValue() and getLabel(). So in FLUID
> you can say {object.property.label}. Perhaps the __toString() will yield getLabel(), which is maybe
> more natural in a FLUID context: {object.property} => label (not value).
Sounds promising. I'm really looking forward to this. Extbase could
inject those objects by default. And I also think that the __toString
method should return the label - this feels most natural I think.
--
kind regards,
Franz Koch
More information about the TYPO3-project-typo3v4mvc
mailing list