You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As you can see, the name parameter is not correctly set. It should be name="user[nameFirst]", instead of the plain field name. When i render the same form with .phtml (no changes made to forms) the name value is set correctly.
Therefore, i assume that the view helper handles the fieldset differently in case of twig templates. Could you please give me any directions how to fix this issue? Is this a bug or am I rendering the template incorrectly.
I am rendering a Zf2 form which contains a fieldset as a child element (simplified for this ticket):
The fieldset is defined as following:
And at last the twig template used for rendering the form:
The HTML output looks like this:
As you can see, the name parameter is not correctly set. It should be name="user[nameFirst]", instead of the plain field name. When i render the same form with .phtml (no changes made to forms) the name value is set correctly.
Therefore, i assume that the view helper handles the fieldset differently in case of twig templates. Could you please give me any directions how to fix this issue? Is this a bug or am I rendering the template incorrectly.
Many thanks for the answers.
Our composer.json looks like this:
The text was updated successfully, but these errors were encountered: