[Flow] Modell class in ViewHelper for annotation reflection

Falk vixe4all at freenet.de
Wed Mar 26 14:59:03 CET 2014


Hi guys,

I take my first steps with flow and own viewhelper. My idea is to 
implement a viewhelper which checks the validation annotations (with 
ReflectionService) of the modell class and mark the "properties" in the 
new and edit form as mandatory fields.

My first try was to submit the whole object to my own viewhelper. This 
works of course only for the edit form where the object exists. My new 
approach ist to submit only the "class name" via name="class" in Fluid. 
But now I need the package name to build automatically the full modell 
path for ReflectionService->getPropertyAnnotations.

Submittinng the whole class path via "name" to the viewhelper seems not 
so good to me!?

Is this in general the right approach and is is possible to investigate 
the full modell path in the viewhelper with some flow magic :) ?

Thanks Falk


More information about the Flow mailing list