I’ve got the following problem: I read this doc about AnnotationForms. It works great so far. The thing is that I now need to add a CSRF-Token and a Submit-Button.
The doc says that I should use a FieldSet. But in the docs to FieldSets they only describe how to include it in a regualr Zend\Form. But all my form definition lies within the Entity.php…because its an AnnotationForm.
Could anybody tell me how to get this token and my button into my AnnotationForm?
Well, first you create the form via the
AnnotationBuilderand then you manually add your stuff.and so on… 😉
Alternatively, since you’d want some order you’d build a Form, add the
csrfand thesubmitas well as afieldset. Then to the add the annotation form INTO the Fieldset.