[Flow] Modell class in ViewHelper for annotation reflection
Dominique Feyer
dfeyer at ttree.ch
Wed Mar 26 15:07:34 CET 2014
Try to submit an fresh new object to your for in your new action, should work
--
Dominique Feyer
Sent with Airmail
Le 26 mars 2014 à 15:00:04, Falk (vixe4all at freenet.de) a écrit:
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
_______________________________________________
Flow mailing list
Flow at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/flow
More information about the Flow
mailing list