Answer the question
In order to leave comments, you need to log in
How to properly organize link transitions in Symfony?
It is necessary in a Symfony project to pass some specific data when following a link. The whole problem is that the links are in the table, and the transferred data (specific ID) depends on what line it is. On the one hand, it would be possible to pass this in a GET request, but this does not look like the most beautiful solution. Are there any other options?
A crutch is spinning in my head with a hidden input and a js link click handler that sets the value in the input, but this is definitely a crutch.
Answer the question
In order to leave comments, you need to log in
There are several ways:
Well, first you need to understand that the URL just contains certain data. Therefore, the question of how to transfer certain data using a URL is devoid of any logic.
It is also not clear what Symfony has to do with it (besides, the first one, which has long been buried in the grave).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question