Quantcast
Channel: Active questions tagged symfony4 - Stack Overflow
Viewing all articles
Browse latest Browse all 3925

pass a variable from view to controller SYMFONY

$
0
0

I know that *passing a variable from view to controller is something that can't be done but I am using symfony and on the purchase form page I need to pass the purchase total to controller to save it in the database.

I have created the form with a formType.php and I don't want to pass the value of the total through the url. Nor would it store it in an input since they can modify it even if it is disabled. And the total price is somewhat variable since discounts can be applied among other things.

I don't know how to approach it or how to do it.

Thank you.


Viewing all articles
Browse latest Browse all 3925

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>