[Flow] Modell class in ViewHelper for annotation reflection
Falk
vixe4all at freenet.de
Wed Mar 26 15:02:56 CET 2014
Hi guys,
I take my first steps with Flow and own ViewHelpers. 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 a object exists. My new approach is 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.
Submitting the whole class path via "name" to the viewhelper sounds not so good to me!?
Is this in general the right approach and is it possible to investigate the full modell path in the viewhelper with some Flow magic ?
Thanks Falk
More information about the Flow
mailing list