var prova= $("select#utente_regione_name").val();
$.ajax({
type: "POST",
url: "{{ path('province', { 'variabile': 'prova<------it's correct?' })
}}",
var prova= $(select#utente_regione_name).val(); $.ajax({ type: POST, url: {{ path(‘province’, { ‘variabile’: ‘prova<——it’s correct?’ })
Share
You can’t access data which comes in array
$_POSTin twig. You should change you script to pass variable from$_POSTto you twig template.