Replies: 2 comments 2 replies
-
So you are saying that the form is rendered but not submitted ? Evening |
Beta Was this translation helpful? Give feedback.
2 replies
-
I cannot be sure without seeing your template rendering the form. But could it be that the form is rendered with an empty action attribute, which would make it submit to the current URL, which is not the URL of |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I use embedding controller to render on the same page 2 twigs :
the first twig renders every review
the second twig renders the form to submit a review. This is done with
{{ render(path('app_new_review',{id:product.id})) }}
is correct. I tried it on an independant page and it works.
But when I put with "all reviews" twig, it won't submit.
Actually, I tried dd("foo"); in the
newreview
function but it seems that the function isn't executed.I d like to keep the embedded system so that my "indexreview" function and my allreviews twig are not overloaded.
Can someone help me figuring out how to use/submit a form included in twig with render(path()) ?
Beta Was this translation helpful? Give feedback.
All reactions